getNotifyState static method

NotifyState? getNotifyState(
  1. int? notifyValue
)

Implementation

static NotifyState? getNotifyState(int? notifyValue) {
  switch (notifyValue) {
    case 0:
      return NotifyState.CLIENT_STORED;
    case 1:
      return NotifyState.CLIENT_SENT;
    case 50:
      return NotifyState.CLIENT_UP_TO_DATE;
    case 51:
      return NotifyState.CLIENT_OUT_OF_DATE;
  }
  return null;
}