TimeOfDay constructor Null safety

const TimeOfDay(
  1. {required int hour,
  2. required int minute}
)

Creates a time of day.

The hour argument must be between 0 and 23, inclusive. The minute argument must be between 0 and 59, inclusive.

Implementation

const TimeOfDay({ required this.hour, required this.minute });