of<T extends Bloc<BlocState>> static method

T of<T extends Bloc<BlocState>>(
  1. BuildContext context
)

Implementation

static T of<T extends Bloc>(BuildContext context) {
  return Provider.of<T>(context, listen: false);
}