showSheet<T> method

Future<T?> showSheet<T>(
  1. Widget child, {
  2. bool isScrollControlled = false,
})

Shows a modal bottom sheet.

Implementation

Future<T?> showSheet<T>(Widget child, {bool isScrollControlled = false}) {
  return showModalBottomSheet<T>(
    context: this,
    isScrollControlled: isScrollControlled,
    builder: (_) => child,
  );
}