copyWith method
FloatingParams
copyWith(
{ - bool? enablePositionCache,
- bool? isSnapToEdge,
- bool? isDragEnable,
- bool? isShowLog,
- double? dragOpacity,
- double? marginTop,
- double? marginBottom,
- double? snapToEdgeSpace,
- int? snapToEdgeSpeed,
- SnapEdgeType? snapEdgeType,
- int? notifyThrottleMs,
})
Implementation
FloatingParams copyWith({
bool? enablePositionCache,
bool? isSnapToEdge,
bool? isDragEnable,
bool? isShowLog,
double? dragOpacity,
double? marginTop,
double? marginBottom,
double? snapToEdgeSpace,
int? snapToEdgeSpeed,
SnapEdgeType? snapEdgeType,
int? notifyThrottleMs,
}) {
return FloatingParams(
enablePositionCache: enablePositionCache ?? this.enablePositionCache,
isSnapToEdge: isSnapToEdge ?? this.isSnapToEdge,
isDragEnable: isDragEnable ?? this.isDragEnable,
isShowLog: isShowLog ?? this.isShowLog,
dragOpacity: dragOpacity ?? this.dragOpacity,
marginTop: marginTop ?? this.marginTop,
marginBottom: marginBottom ?? this.marginBottom,
snapToEdgeSpace: snapToEdgeSpace ?? this.snapToEdgeSpace,
snapToEdgeSpeed: snapToEdgeSpeed ?? this.snapToEdgeSpeed,
snapEdgeType: snapEdgeType ?? this.snapEdgeType,
notifyThrottleMs: notifyThrottleMs ?? this.notifyThrottleMs,
);
}