hasRole method

  1. @override
bool hasRole(
  1. String role
)
override

Implementation

@override
bool hasRole(String role) {
  final s = _state;
  return s is Authenticated && s.data.roles.contains(role);
}