copyWith method
BottomSheetOptions
copyWith({
- Color? backgroundColor,
- double? elevation,
- ShapeBorder? shape,
- Clip? clipBehavior,
- Color? barrierColor,
- bool? barrierDismissible,
- bool? enableDrag,
- bool? isScrollControlled,
- RouteSettings? routeSettings,
- AnimationController? transitionAnimationController,
- BoxConstraints? constraints,
- 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);