ScopedPermission class

A scoped permission with optional pattern matching

Example:

ScopedPermission(Permission.serviceCall, 'auth.*') // Access to all auth services
ScopedPermission(Permission.dataRead) // Read all shared data

Constructors

ScopedPermission(Permission permission, [String? pattern])
const

Properties

hashCode int
The hash code for this object.
no setterinherited
pattern String?
Optional pattern for scoped access (e.g., 'auth.*', 'user.profile') If null, permission applies to all resources of this type
final
permission Permission
The type of permission
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(Permission type, String? resource) bool
Check if this permission matches a resource
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