fromInt static method

CalendarPermission fromInt(
  1. int value
)

Implementation

static CalendarPermission fromInt(int value) {
  if (value == 0) {
    return CalendarPermission.denied;
  } else if (value == 1) {
    return CalendarPermission.allowed;
  } else if (value == 2) {
    return CalendarPermission.writeOnly;
  } else if (value == 3) {
    return CalendarPermission.notDetermined;
  } else if (value == 3) {
    return CalendarPermission.restricted;
  }
  return CalendarPermission.noIdea;
}