RoleConfig class

Set the permissions.

You can set multiple permissions in permissions to specify what this user can do.

Available Extensions
Annotations

Constructors

RoleConfig({required String id, String? label, Color? color, IconData? icon, String? path, List<String> permissions = const []})
Set the permissions.
const

Properties

color Color?
Color of roll.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Icon of roll.
final
id String
ID of the role.
final
label String?
The display name of the role.
final
path String?
The page path to go to when you tap the roll.
final
permissions List<String>
Permissions for the role.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → dynamic
Convert the role config to DynamicMap.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited