fromInt static method

Day? fromInt(
  1. int? i
)

Implementation

static Day? fromInt(int? i) =>
    i == null || [-1, 5].contains(i) ? null : Day.values[i];