toLocalNotification method

Importance toLocalNotification()

Implementation

Importance toLocalNotification() {
  switch (this) {
    case AndroidImportance.HIGH:
      return Importance.high;
    case AndroidImportance.DEFAULT:
      return Importance.defaultImportance;
    case AndroidImportance.LOW:
      return Importance.low;
    case AndroidImportance.MIN:
      return Importance.min;
    case AndroidImportance.NONE:
      return Importance.none;
  }
}