TimeInterval constructor
Creates a new TimeInterval.
endTime The end of the time interval.
startTime Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.
Implementation
const TimeInterval({
required this.endTime,
this.startTime,
});