RightsEngine class

Constructors

RightsEngine({required List<RightLevel> hierarchy, required Map<ActionKey, RightLevel> rules, required RightLevel initialLevel})

Properties

hashCode int
The hash code for this object.
no setterinherited
hierarchy List<RightLevel>
final
rules Map<ActionKey, RightLevel>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canPerform(ActionKey action) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentLevel(RightLevel level) → void
toString() String
A string representation of this object.
inherited

Operators

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