getByValue static method

WeekDay getByValue(
  1. int value
)

Implementation

static WeekDay getByValue(int value) {
  return WeekDay.values.firstWhere((x) => x.rawValue == value);
}