validateRole method

bool validateRole(
  1. dynamic role
)

Implementation

bool validateRole(dynamic role) {
  /// validates that there is a role matching with this Authorization
  return _roles.where((element) => element == role).toList().isNotEmpty;
}