select<T extends Bloc, R> static method
Similar to the SelectContext.select
method from the Provider package.
Implementation
static R select<T extends Bloc, R>(
BuildContext context,
R Function(T) selector,
) =>
context.select<BlocNotifier<T>, R>((a) => selector(a.bloc));