member static method

MemberModel? member(
  1. BuildContext context
)

Implementation

static MemberModel? member(BuildContext context) {
  var state = BlocProvider.of<AccessBloc>(context).state;
  if (state is AccessDetermined) {
    return state.getMember();
  } else {
    return null;
  }
}