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