Freezed cubit š§
Generates a new freezed cubit, and its runner files in Dart. Built for the flutter bloc state management library with freezed.
Usage š
Make sure that freezed, freezed_annotation, flutter_bloc, and build_runner are added to your pubspec.yaml
.
mason make freezed_cubit
Variables āØ
Variable | Description | Default | Type |
---|---|---|---|
name | The name of the cubit class | counter | string |
generate_status | Whether to generate a status class for the cubit | true | boolean |
path_for_test | The path for creating a test file for the cubit; won't generate if the value is empty | string |
Output š¦
āāā counter_cubit.dart
āāā counter_state.dart
āāā counter_cubit_test.dart