buildHolidayForward static method

Holiday buildHolidayForward(
  1. String s
)

Implementation

static Holiday buildHolidayForward(String s) {
  String day = s.substring(0, 8);
  String name = namesInUse[s.codeUnitAt(8) - zero];
  bool work = s.codeUnitAt(9) == zero;
  String target = s.substring(10, SIZE);
  return Holiday(day, name, work, target);
}