toNotificationStatus function
Implementation
NotificationStatus toNotificationStatus(int? index) {
switch (index) {
case 0:
return NotificationStatus.closed;
case 1:
return NotificationStatus.open;
}
return NotificationStatus.unknown;
}