toTimeOfDay method

TimeOfDay? toTimeOfDay()

Implementation

TimeOfDay? toTimeOfDay() {
  final dateTime = toDateTime();
  return dateTime == null ? null : TimeOfDay.fromDateTime(dateTime);
}