TPermission class
A permission requirement: one string, any-of, or all-of a list.
Constructors
- TPermission(String key)
-
const
-
TPermission.all(List<
String> keys) -
const
-
TPermission.any(List<
String> keys) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
String> -
final
- requireAll → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluate(
bool has(String)) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
Object? value) → TPermission? - Accepts a String, a TPermission or null.