Role class

Represents the data structure for a role in RBAC.

Constructors

Role(String name)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
roles List<Role>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRole(Role role) → void
deleteRole(Role role) → void
getRoles() List<String>
hasDirectRole(String name) bool
hasRole(String name, int hierarchyLevel) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited