showModalSheet<T> method

Future<T?> showModalSheet<T>({
  1. required Widget child,
  2. bool isDismissible = true,
  3. bool enableDrag = true,
  4. bool isScrollControlled = false,
  5. Color? backgroundColor,
  6. double? elevation,
  7. ShapeBorder? shape,
  8. Clip? clipBehavior,
})

Displays a modal bottom sheet with the given child.

Implementation

Future<T?> showModalSheet<T>({
  required Widget child,
  bool isDismissible = true,
  bool enableDrag = true,
  bool isScrollControlled = false,
  Color? backgroundColor,
  double? elevation,
  ShapeBorder? shape,
  Clip? clipBehavior,
}) {
  return showModalBottomSheet<T>(
    context: this,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    isScrollControlled: isScrollControlled,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    builder: (_) => child,
  );
}