copyWith method
PipSettings
copyWith({
- double? collapsedWidth,
- double? collapsedHeight,
- double? expandedWidth,
- double? expandedHeight,
- BorderRadius? borderRadius,
- EdgeInsets? screenPadding,
- Duration? animationDuration,
- Curve? animationCurve,
- Color? backgroundColor,
- Color? shadowColor,
- double? elevation,
- bool? showDragHandle,
- Color? dragHandleColor,
- bool? showCloseButton,
- Color? closeButtonColor,
- bool? showExpandButton,
- Color? expandButtonColor,
- bool? showProgressBar,
- Color? progressBarColor,
- Color? progressBarBackgroundColor,
- double? progressBarHeight,
- bool? snapToEdges,
- double? snapThreshold,
- bool? allowDrag,
- bool? allowExpand,
- bool? showBackdropWhenExpanded,
- Color? backdropColor,
- bool? showTitle,
- TextStyle? titleStyle,
- bool? showControls,
- double? controlsHeight,
- Color? controlsBackgroundColor,
- Color? reelsBtnColor,
- bool? isReelsMode,
- double? reelsWidth,
- double? reelsHeight,
- double? reelsSliderSize,
- Color? reelsBackgroundColor,
- Color? reelsSliderColor,
- IconData? reelsSliderIcon,
- Color? reelsSliderIconColor,
- double? reelsDragSensitivity,
- Offset? offset,
Creates a copy of this settings with the given fields replaced
Implementation
PipSettings copyWith({
double? collapsedWidth,
double? collapsedHeight,
double? expandedWidth,
double? expandedHeight,
BorderRadius? borderRadius,
EdgeInsets? screenPadding,
Duration? animationDuration,
Curve? animationCurve,
Color? backgroundColor,
Color? shadowColor,
double? elevation,
bool? showDragHandle,
Color? dragHandleColor,
bool? showCloseButton,
Color? closeButtonColor,
bool? showExpandButton,
Color? expandButtonColor,
bool? showProgressBar,
Color? progressBarColor,
Color? progressBarBackgroundColor,
double? progressBarHeight,
bool? snapToEdges,
double? snapThreshold,
bool? allowDrag,
bool? allowExpand,
bool? showBackdropWhenExpanded,
Color? backdropColor,
bool? showTitle,
TextStyle? titleStyle,
bool? showControls,
double? controlsHeight,
Color? controlsBackgroundColor,
Color? reelsBtnColor,
bool? isReelsMode,
double? reelsWidth,
double? reelsHeight,
double? reelsSliderSize,
Color? reelsBackgroundColor,
Color? reelsSliderColor,
IconData? reelsSliderIcon,
Color? reelsSliderIconColor,
double? reelsDragSensitivity,
Offset? offset,
}) {
return PipSettings(
collapsedWidth: collapsedWidth ?? this.collapsedWidth,
collapsedHeight: collapsedHeight ?? this.collapsedHeight,
expandedWidth: expandedWidth ?? this.expandedWidth,
expandedHeight: expandedHeight ?? this.expandedHeight,
borderRadius: borderRadius ?? this.borderRadius,
screenPadding: screenPadding ?? this.screenPadding,
animationDuration: animationDuration ?? this.animationDuration,
animationCurve: animationCurve ?? this.animationCurve,
backgroundColor: backgroundColor ?? this.backgroundColor,
shadowColor: shadowColor ?? this.shadowColor,
elevation: elevation ?? this.elevation,
showDragHandle: showDragHandle ?? this.showDragHandle,
dragHandleColor: dragHandleColor ?? this.dragHandleColor,
showCloseButton: showCloseButton ?? this.showCloseButton,
closeButtonColor: closeButtonColor ?? this.closeButtonColor,
showExpandButton: showExpandButton ?? this.showExpandButton,
expandButtonColor: expandButtonColor ?? this.expandButtonColor,
showProgressBar: showProgressBar ?? this.showProgressBar,
progressBarColor: progressBarColor ?? this.progressBarColor,
progressBarBackgroundColor: progressBarBackgroundColor ?? this.progressBarBackgroundColor,
progressBarHeight: progressBarHeight ?? this.progressBarHeight,
snapToEdges: snapToEdges ?? this.snapToEdges,
snapThreshold: snapThreshold ?? this.snapThreshold,
allowDrag: allowDrag ?? this.allowDrag,
allowExpand: allowExpand ?? this.allowExpand,
showBackdropWhenExpanded: showBackdropWhenExpanded ?? this.showBackdropWhenExpanded,
backdropColor: backdropColor ?? this.backdropColor,
showTitle: showTitle ?? this.showTitle,
titleStyle: titleStyle ?? this.titleStyle,
showControls: showControls ?? this.showControls,
controlsHeight: controlsHeight ?? this.controlsHeight,
controlsBackgroundColor: controlsBackgroundColor ?? this.controlsBackgroundColor,
isReelsMode: isReelsMode ?? this.isReelsMode,
reelsWidth: reelsWidth ?? this.reelsWidth,
reelsHeight: reelsHeight ?? this.reelsHeight,
reelsSliderSize: reelsSliderSize ?? this.reelsSliderSize,
reelsBackgroundColor: reelsBackgroundColor ?? this.reelsBackgroundColor,
reelsSliderColor: reelsSliderColor ?? this.reelsSliderColor,
reelsSliderIcon: reelsSliderIcon ?? this.reelsSliderIcon,
reelsSliderIconColor: reelsSliderIconColor ?? this.reelsSliderIconColor,
reelsDragSensitivity: reelsDragSensitivity ?? this.reelsDragSensitivity,
offset: offset ?? this.offset,
);
}