AccessStrategy class abstract

AccessStrategy — абстрактный контракт для источника данных доступа.

Используется внутри Gate-виджетов для проверки флагов, ролей, пермишенов и т.д.

Implementers
Annotations

Constructors

AccessStrategy.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hasPermission(BuildContext context, String permission) bool
Проверка пермишена (например, 'orders.edit')
hasRole(BuildContext context, String role) bool
Проверка роли (если используется)
isFeatureEnabled(BuildContext context, String flag) bool
Проверка feature-флага (например, 'new_ui')
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