Disable equality for one factory constructor #981
Replies: 4 comments
-
|
I would like equality to be generated for the "data" state, but not for the "success" and "failure" states. |
Beta Was this translation helpful? Give feedback.
-
|
You can use |
Beta Was this translation helpful? Give feedback.
-
|
in the case of an abstract class, as in the documentation, a compilation error in the case of a mixin, operators are not called what am I doing wrong? =( |
Beta Was this translation helpful? Give feedback.
-
|
It would be very convenient to be able to apply decorators not only to the class as a whole, but also to specific factory constructors. For example: |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can I disable equality generation for just one factory constructor?
I use flutter + bloc + freezed and I want one of the states (ErrorState) not to generate equality, so that bloc can react even to identical states and not ignore duplicate ones?
Now I have to do this as in the screenshot. Is there another way?
Beta Was this translation helpful? Give feedback.
All reactions