Time.fromTimeOfDay constructor

Time.fromTimeOfDay(
  1. TimeOfDay time,
  2. int? secondVal
)

Get Time instance from TimeOfDay

Implementation

factory Time.fromTimeOfDay(TimeOfDay time, int? secondVal) {
  return Time(hour: time.hour, minute: time.minute, second: secondVal);
}