felangel/cubit
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.
repo name | felangel/cubit |
repo link | https://github.com/felangel/cubit |
homepage | https://pub.dev/packages/cubit |
language | Dart |
size (curr.) | 3085 kB |
stars (curr.) | 303 |
created | 2020-06-04 |
license | MIT License |
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.
Usage
class CounterCubit extends Cubit<int> {
CounterCubit() : super(0);
void increment() => emit(state + 1);
void decrement() => emit(state - 1);
}
Packages
Package | Pub |
---|---|
cubit | |
cubit_test | |
flutter_cubit | |
angular_cubit | |
hydrated_cubit | |
replay_cubit |
Documentation
- Cubit Package
- Cubit Test Package
- Flutter Cubit Package
- Angular Cubit Package
- Hydrated Cubit Package
- Replay Cubit Package
Dart Versions
- Dart 2: >= 2.7.0
Maintainers
Starware
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. ⭐