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