label property
String
get
label
Implementation
String get label {
switch (this) {
case UserRole.superAdmin:
return AppTranslationConstants.superAdmin.tr;
case UserRole.admin:
return AppTranslationConstants.admin.tr;
case UserRole.developer:
return AppTranslationConstants.roleDeveloper.tr;
case UserRole.pos:
return AppTranslationConstants.rolePos.tr;
case UserRole.erp:
return AppTranslationConstants.roleErp.tr;
case UserRole.support:
return AppTranslationConstants.roleSupport.tr;
case UserRole.editor:
return AppTranslationConstants.roleEditor.tr;
case UserRole.subscriber:
return CommonTranslationConstants.freeAccount.tr;
}
}