showModalSheet<T> method
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,
);
}