freezed
freezed copied to clipboard
Support Freezed generated classes as input of other Freezed classes within the same file
@freezed
class A with _$A {
factory A() = AImpl;
}
@freezed
class B with _$B {
factory B(AImpl a) = _B;
}
This is especially useful for unions.
Would get pretty hard to support cross-file though