avoid-cubits
Warns when a Cubit
is used.
It's recommended to avoid Cubits if you want to scale your codebase, since Cubits might look like a good way to start, but they scale badly.
Example
❌ Bad:
// LINT: Use of 'Cubits' is not allowed. Try creating 'Blocs' instead.
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
}
✅ Good:
// Use Bloc instead