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 BuildContext
no 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 the ReadContext.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 the SelectContext.select method from the Provider package.
watchBloc<T extends Bloc>() → T

Available on BuildContext, provided by the EventBlocBuildContext extension

Similar to the WatchContext.watch method from the Provider package.