Time constructor

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

Constructor for the class

Implementation

Time({required int hour, required int minute, int? second})
    : super(hour: hour, minute: minute) {
  this.second = second ?? 0;
}