CurrentUser class

Constructors

CurrentUser.admin([Authorization getAuthorization(DashboardItem item) = _getAuthorization])
const
CurrentUser.anonymous([Authorization getAuthorization(DashboardItem item) = _getAuthorization])
const
CurrentUser.supervisor(List<String> permissions, [Authorization getAuthorization(DashboardItem item) = _getAuthorization])
const
CurrentUser.user([Authorization getAuthorization(DashboardItem item) = _getAuthorization])
const

Properties

getAuthorization Authorization Function(DashboardItem item)
final
hashCode int
The hash code for this object.
no setterinherited
permissions List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userType UserType
final

Methods

handle(List<DashboardItem> items, List<AccessType> parent) List<DashboardItem>
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