smart_bloc 0.3.2
smart_bloc: ^0.3.2 copied to clipboard
Codegen-free BLoC/Cubit layer for Flutter: sealed async state, query/mutate with stale-result protection, one-shot UI effects, and ref-counted autoDispose lifecycle.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add smart_blocThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
smart_bloc: ^0.3.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smart_bloc/smart_bloc.dart';