ui_guard library
Classes
- AccessDecision
- Represents a detailed access-control decision.
- AccessGuard
- A widget that guards an entire screen or widget subtree based on user roles.
- AccessPolicy
- Reusable authorization policy.
- CombinedGuard
- A flexible access control widget that combines roles, permissions, and custom conditions into a single guard.
- CronParseResult
- Guard
- A simple class to hold and manage user roles.
- GuardConfig
- Configuration for ui_guard behavior.
- GuardDiagnostics
- Debug helper for access-control logs.
- GuardListenableBuilder
- Lightweight builder that rebuilds when listenable notifies.
- GuardNotifier
- Reactive variant of Guard that notifies listeners on changes.
- GuardUtils
- A utility class for evaluating complex access control logic using roles, permissions, and custom conditions.
- PolicyGuard
- Guards UI using a reusable AccessPolicy.
- RoleBasedView
- A widget that shows child only if the current user has any of the requiredRoles.
- RoleGuard
- A utility class for evaluating role-based access rules.
- ScheduleGuard
- A widget that controls access to its child widget based on a cron-style schedule.
- ScheduleParser
- Parses and evaluates cron expressions with support for wildcards, lists, ranges, and steps (e.g. */5, 1-10/2).
- TimedAccessGuard
- A widget that conditionally renders its child based on a specified time window.