CapabilityRef class

A capability, optionally qualified by a resource. Used where a capability is named but not granted — a role's ceiling, a role's approve ceiling, an entry's approvable capabilities. An unqualified reference covers every resource of the capability's kind.

Constructors

CapabilityRef({required Capability capability, ResourceQualifier? resource})
const
CapabilityRef.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

capability → String
final
hashCode → int
The hash code for this object.
no setterinherited
resource → ResourceQualifier?
Optional qualifier. Absent covers every resource of the capability's kind.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

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