name property
String
get
name
Returns the lowercase role name.
Example:
print(RoleType.staff.name); // staff
Implementation
String get name => toString().split('.').last.toLowerCase();
Returns the lowercase role name.
Example:
print(RoleType.staff.name); // staff
String get name => toString().split('.').last.toLowerCase();