BLoCProvider<T extends BLoC> constructor

BLoCProvider<T extends BLoC>(
  1. {Key key,
  2. @required Widget child,
  3. @required T bloc,
  4. _Init<T> init,
  5. bool withAnalytics: true,
  6. VoidCallback onDispose}
)

Implementation

BLoCProvider({
  Key key,
  @required this.child,
  @required this.bloc,
  this.init,
  this.withAnalytics = true,
  this.onDispose,
}) : super(key: key);