containScopes static method

Future<bool> containScopes(
  1. AuthAccount? account,
  2. List<Scope> scopeList
)

Checks whether an ID has been assigned all permissions specified by scopeList.

Implementation

static Future<bool> containScopes(
  AuthAccount? account,
  List<Scope> scopeList,
) async {
  return await _c.invokeMethod(
    'containScopes',
    <String, dynamic>{
      'account': account?.toMap(),
      'scopes': _getScopeList(scopeList),
    },
  );
}