PermissionService class
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
-
clearPermissions(
) → Future< void> - Clear cached permissions
-
fetchProductPermissions(
{required String tenantId, required String tenantProductId}) → Future< Map< String, dynamic> > - Fetch permissions from backend
-
getCachedPermissions(
) → Future< List< String> > - Get all cached permissions
-
getLastUpdateTime(
) → Future< String?> - Get last update time
-
hasPermission(
String featureName) → Future< bool> - Check if user has a specific permission
-
needsRefresh(
) → Future< bool> - Check if permissions need refresh 🔧 Set to 30 seconds for DEVELOPMENT, change to 5 minutes for PRODUCTION
-
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 Properties
- instance → PermissionService
-
no setter
Static Methods
-
initialize(
{required BaasApi api}) → void