showBottomSheet method

Future<T?> showBottomSheet(
  1. Widget child, {
  2. bool isScrollControlled = true,
  3. Color? backgroundColor,
  4. Color? barrierColor,
})

Implementation

Future<T?> showBottomSheet(
  Widget child, {
  bool isScrollControlled = true,
  Color? backgroundColor,
  Color? barrierColor,
}) async {
  return await showModalBottomSheet<T>(
    context: this,
    barrierColor: barrierColor,
    isScrollControlled: isScrollControlled,
    backgroundColor: backgroundColor,
    clipBehavior: Clip.antiAlias,
    builder: (context) => Wrap(
      clipBehavior: Clip.antiAlias,
      children: [child],
    ),
  );
}