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