show<T> static method

Future<T?> show<T>({
  1. required BuildContext context,
  2. required TimePicker sheet,
  3. bool dismissible = true,
  4. double roundedCorner = 8.0,
})

Implementation

static Future<T?> show<T>({
  required BuildContext context,
  required TimePicker sheet,
  bool dismissible = true,
  double roundedCorner = 8.0,
}) async {
  return await showModalBottomSheet(
    context: context,
    isScrollControlled: true,
    enableDrag: dismissible,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(roundedCorner),
    ),
    isDismissible: dismissible,
    builder: (_) {
      return sheet;
    },
  );
}