I have many states in my app, but many of them contain 4 same States :
- Idle
- Loading
- Success
- Error
I'm using Freezed library to create my states. It forces me to create a lot of boilerplate code, because I have to add 4 additional constructors in each bloc state.
I want know, how I can avoid code duplication? May I extend one sealed class from another to inherit 4 constructors described above?