ClockTime constructor

ClockTime({
  1. required int hour,
  2. required int minute,
  3. int? second,
})

Implementation

ClockTime({
  required this.hour,
  required this.minute,
  this.second,
}) : assert(
        hour >= 0 && minute >= 0 && hour <= 24 && minute <= 60,
      );