read<T extends Bloc> static method

T read<T extends Bloc>(
  1. BuildContext context
)

Similar to the ReadContext.read method from the Provider package.

Implementation

static T read<T extends Bloc>(BuildContext context) =>
    context.read<BlocNotifier<T>>().bloc;