showDialPicker function
Future<Duration?>
showDialPicker({
- required BuildContext context,
- required Duration initialTime,
- BaseUnit baseUnit = BaseUnit.minute,
- double? snapToMins,
Implementation
Future<Duration?> showDialPicker({
required BuildContext context,
required Duration initialTime,
BaseUnit baseUnit = BaseUnit.minute,
double? snapToMins,
}) async {
return await showDialog<Duration>(
context: context,
builder: (BuildContext context) => _DialPickerDialog(
initialTime: initialTime,
baseUnit: baseUnit,
snapToMins: snapToMins,
),
);
}