getState static method

AccessState getState(
  1. BuildContext context
)

Implementation

static AccessState getState(BuildContext context) {
  var accessBloc = BlocProvider.of<AccessBloc>(context);
  var state = accessBloc.state;
  return state;
}