permission_policy library

Classes

PermissionPolicy
Permission policy is a simple way to manage permissions for your app.
PermissionView
PermissionView is a widget that shows a child widget if the user has a permission. Example:
RoleSelector
RoleSelector is a widget that shows a list of roles that can be assigned to a user.
RoleView
RoleView is a widget that shows a child widget if the user has a role. Example:
UserPermissions
UserPermissions is a widget that shows the permissions for the current user.
UserRoles
UserRole is a widget that shows the role for the current user.

Typedefs

RoleAndPermissions = Map<String, List<String>>
Define role and permissions