Generate a new Flutter feature with bloc. Built for the bloc state management library.
Usage š
mason make flutter_bloc_feature --name counter --type bloc --style basic
Variables āØ
Variable | Description | Default | Type |
---|---|---|---|
name | The name of the feature | counter | string |
type | The type of the bloc | bloc | enum |
style | The style of bloc generated | basic (basic, equatable, freezed) | enum |
Output š¦
āā counter
ā āāā bloc
ā ā āāā counter_bloc.dart
ā ā āāā counter_event.dart
ā ā āāā counter_state.dart
ā āāā counter.dart
ā āāā view
ā āāā counter_page.dart
ā āāā view.dart