DurationPicker constructor
const
DurationPicker({})
Implementation
const DurationPicker({
Key? key,
this.initialTime = const Duration(minutes: 0),
this.minTime,
this.maxTime,
required this.onChange,
this.baseUnit = BaseUnit.minute,
this.snapToMins,
this.width,
this.height,
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);