copyWith method

BottomSheetOptions copyWith({
  1. Color? backgroundColor,
  2. double? elevation,
  3. ShapeBorder? shape,
  4. Clip? clipBehavior,
  5. Color? barrierColor,
  6. bool? barrierDismissible,
  7. bool? enableDrag,
  8. bool? isScrollControlled,
  9. RouteSettings? routeSettings,
  10. bool? useRootNavigator,
  11. AnimationController? transitionAnimationController,
  12. BoxConstraints? constraints,
  13. Offset? anchorPoint,
})

Implementation

BottomSheetOptions copyWith({
  Color? backgroundColor,
  double? elevation,
  ShapeBorder? shape,
  Clip? clipBehavior,
  Color? barrierColor,
  bool? barrierDismissible,
  bool? enableDrag,
  bool? isScrollControlled,
  RouteSettings? routeSettings,
  bool? useRootNavigator,
  AnimationController? transitionAnimationController,
  BoxConstraints? constraints,
  Offset? anchorPoint,
}) =>
    BottomSheetOptions(
        anchorPoint: anchorPoint ?? this.anchorPoint,
        constraints: constraints ?? this.constraints,
        backgroundColor: backgroundColor ?? this.backgroundColor,
        elevation: elevation ?? this.elevation,
        shape: shape ?? this.shape,
        clipBehavior: clipBehavior ?? this.clipBehavior,
        barrierColor: barrierColor ?? this.barrierColor,
        barrierDismissible: barrierDismissible ?? this.barrierDismissible,
        enableDrag: enableDrag ?? this.enableDrag,
        isScrollControlled: isScrollControlled ?? this.isScrollControlled,
        routeSettings: routeSettings ?? this.routeSettings,
        useRootNavigator: useRootNavigator ?? this.useRootNavigator,
        transitionAnimationController: transitionAnimationController ??
            this.transitionAnimationController);