-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unions inheritance #63
Comments
And how do you plan on implementing the interface? |
In the example just AppNavigationState inheritance, to filter out BLOC states by whereType() later |
That's not what I meant. |
properties and methods are not usually used for BLOC for the case I described |
Added as part of 0.11.0 |
Is it possible to use something like: abstract class GenericFailure {}
@freezedWith(GenericFailure)
abstract class SpecificFailure with _$SpecificFailure {
const factory SpecificFailure.A() = A;
const factory SpecificFailure.B() = B;
} |
No, it is not possible |
Thanks! |
Hi, sorry to "reopen" old issue, but how exactly mentioned version 0.11.0 solves this? |
It could be nice to use Unions for the BLOC states
But states usually have inheritance:
so we could filter states after:
so it could befreezed freezedWith attribute for example:
The text was updated successfully, but these errors were encountered: