parse property
NotificationImportance
get
parse
Implementation
NotificationImportance get parse {
if (this == '1') {
return NotificationImportance.importanceMin;
}
if (this == '2') {
return NotificationImportance.importanceLow;
}
if (this == '3') {
return NotificationImportance.importanceDefault;
}
if (this == '4') {
return NotificationImportance.importanceHight;
}
return NotificationImportance.disabled;
}