toTimeOfDay method

TimeOfDay? toTimeOfDay({
  1. String? inputFormat = "hh:mm a",
})

Implementation

TimeOfDay? toTimeOfDay({String? inputFormat = "hh:mm a"}) {
  assert(isNotNullOrEmpty, "Input must not be null or empty");
  return TimeOfDay.fromDateTime(DateFormat(inputFormat).parse(toNotNull));
}