current property
- @Deprecated('This will be removed in v9.0.0. Use Bloc.observer/Bloc.transformer instead.')
Returns the current BlocOverrides instance.
This will return null
if the current Zone does not contain
any BlocOverrides.
See also:
- BlocOverrides.runZoned to provide BlocOverrides in a fresh Zone.
Implementation
@Deprecated(
'This will be removed in v9.0.0. Use Bloc.observer/Bloc.transformer instead.',
)
static BlocOverrides? get current => Zone.current[_token] as BlocOverrides?;