hasRole abstract method

Future<bool> hasRole(
  1. String userId,
  2. String role, {
  3. String? resource,
  4. Map<String, dynamic>? context,
})

Check if user has specific role

Implementation

Future<bool> hasRole(
  String userId,
  String role, {
  String? resource,
  Map<String, dynamic>? context,
});