bloc<T extends BaseBloc> method

T bloc<T extends BaseBloc>({
  1. bool listen = false,
})

Retrieve the bloc from the BlocProvider by this BuildContext.

Implementation

T bloc<T extends BaseBloc>({bool listen = false}) =>
    BlocProvider.of<T>(this, listen: listen);