convertStringToTimeOfDay static method

TimeOfDay convertStringToTimeOfDay(
  1. String s
)

Implementation

static TimeOfDay convertStringToTimeOfDay(String s) {
  TimeOfDay hour = TimeOfDay(
      hour: int.parse(s.split(":")[0]), minute: int.parse(s.split(":")[1]));
  return hour;
}