bloc 0.4.2 bloc: ^0.4.2 copied to clipboard
The goal of this package is to make it easy to implement the BLoC Design Pattern (Business Logic Component).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bloc
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
bloc: ^0.4.2
Alternatively, 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:bloc/bloc.dart';