showDialPicker function

Future<Duration?> showDialPicker({
  1. required BuildContext context,
  2. required Duration initialTime,
  3. BaseUnit baseUnit = BaseUnit.minute,
  4. 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,
    ),
  );
}