DurationPickerDialog constructor
const
DurationPickerDialog({})
Creates a duration picker.
initialTime
must not be null.
Implementation
const DurationPickerDialog({
Key? key,
required this.initialTime,
this.baseUnit = BaseUnit.minute,
this.snapToMins = 1.0,
this.minTime,
this.maxTime,
this.enableHapticFeedback = true,
}) : assert(
(minTime == null || (initialTime >= minTime)) &&
(maxTime == null || (initialTime <= maxTime)) ||
(minTime != null &&
maxTime != null &&
initialTime >= minTime &&
initialTime <= maxTime),
'invalid time'),
super(key: key);