isOwner static method

bool isOwner(
  1. BuildContext context,
  2. AppModel app
)

Implementation

static bool isOwner(BuildContext context, AppModel app) {
  var theState = AccessBloc.getState(context);
  if (theState is AccessDetermined) {
    return theState.memberIsOwner(app.documentID);
  }
  return false;
}