Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.
⚠️ Attention: This repository has been moved to https://github.com/felangel/bloc and is now read-only!
Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
void increment() => emit(state + 1);
void decrement() => emit(state - 1);
}
Package | Pub |
---|---|
cubit | |
cubit_test | |
flutter_cubit | |
angular_cubit | |
hydrated_cubit | |
replay_cubit |
Cubit is Starware.
This means you're free to use the project, as long as you star its GitHub repository.
Your appreciation makes us grow and glow up. ⭐