Permissions class

Defines the combination of permissions

Constructors

Permissions(List<int> permissions)
Create permissions by the integer lists of Permission.VALUE objects
Permissions.fromInt(int number)
Create permissions the the combined permission integer
factory

Properties

permissions List<int>
Returns the separated permissions as list
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addPermission(int permission) → void
Add a permission if not existing
removePermission(int permission) → void
Remove a permission if existing
toInt() int
Create the combined permissions integer
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited