current property

  1. @Deprecated('This will be removed in v9.0.0. Use Bloc.observer/Bloc.transformer instead.')
BlocOverrides? get current

Returns the current BlocOverrides instance.

This will return null if the current Zone does not contain any BlocOverrides.

See also:

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?;