show method

Future<DateTime?> show({
  1. BottomSheetOptions? options,
})

Implementation

Future<DateTime?> show({BottomSheetOptions? options}) async {
  final position = await popupBottomSheet<List<int>?>(options: options);
  if (position == null || key == null) return null;
  return (key as GlobalKey<_DatePickerState>)
      .currentState
      ?.indexToDatetime(position);
}