showBottomModal<T> function

Future<T?> showBottomModal<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. Color? backgroundColor,
  4. double elevation = 0.0,
  5. ShapeBorder? shape,
  6. Clip clipBehavior = Clip.none,
  7. Color? barrierColor,
  8. bool isScrollControlled = false,
  9. bool useRootNavigator = false,
  10. bool isDismissible = true,
  11. bool enableDrag = true,
  12. AnimationController? transitionAnimationController,
  13. String? routeSettingsName,
  14. RouteSettings? routeSettings,
  15. bool useSafeArea = true,
})

Implementation

Future<T?> showBottomModal<T>({
  required BuildContext context,
  required WidgetBuilder builder,
  Color? backgroundColor,
  double elevation = 0.0,
  ShapeBorder? shape,
  Clip clipBehavior = Clip.none,
  Color? barrierColor,
  bool isScrollControlled = false,
  bool useRootNavigator = false,
  bool isDismissible = true,
  bool enableDrag = true,
  AnimationController? transitionAnimationController,
  String? routeSettingsName,
  RouteSettings? routeSettings,
  bool useSafeArea = true,
}) {
  return showModalBottomSheet<T>(
    context: context,
    builder: builder,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    barrierColor: barrierColor,
    isScrollControlled: isScrollControlled,
    useRootNavigator: useRootNavigator,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    transitionAnimationController: transitionAnimationController,
    routeSettings: routeSettings,
    useSafeArea: useSafeArea,
  );
}