EventBlocBuildContext extension
Adds event bloc convenience functions to BuildContext
- on
Properties
- eventChannel → BlocEventChannel
-
Available on BuildContext, provided by the EventBlocBuildContext extension
The closest ancestor BlocEventChannel in this BuildContextno setter
Methods
-
asReadable(
) → Readable -
Available on BuildContext, provided by the EventBlocBuildContext extension
Converts this BuildContext into a Readable. -
fireEvent<
T> (BlocEventType< T> eventType, T payload, {bool withDelay = false}) → void -
Available on BuildContext, provided by the EventBlocBuildContext extension
Convenience function that will find the closest BlocEventChannel in the BuildContext and calls fireEvent -
readBloc<
T extends Bloc> () → T -
Available on BuildContext, provided by the EventBlocBuildContext extension
Similar to theReadContext.read
method from the Provider package. -
selectBloc<
T extends Bloc, R> (R selector(T)) → R -
Available on BuildContext, provided by the EventBlocBuildContext extension
Similar to theSelectContext.select
method from the Provider package. -
watchBloc<
T extends Bloc> () → T -
Available on BuildContext, provided by the EventBlocBuildContext extension
Similar to theWatchContext.watch
method from the Provider package.