copyWith method
Creates a copy with the given values replaced.
Implementation
ZoomConfig copyWith({
double? minZoomX,
double? maxZoomX,
double? minZoomY,
double? maxZoomY,
bool? enablePinchZoom,
bool? enableScrollWheelZoom,
bool? enableDoubleTapZoom,
double? scrollWheelZoomFactor,
double? doubleTapZoomFactor,
Duration? animationDuration,
Curve? animationCurve,
}) =>
ZoomConfig(
minZoomX: minZoomX ?? this.minZoomX,
maxZoomX: maxZoomX ?? this.maxZoomX,
minZoomY: minZoomY ?? this.minZoomY,
maxZoomY: maxZoomY ?? this.maxZoomY,
enablePinchZoom: enablePinchZoom ?? this.enablePinchZoom,
enableScrollWheelZoom: enableScrollWheelZoom ?? this.enableScrollWheelZoom,
enableDoubleTapZoom: enableDoubleTapZoom ?? this.enableDoubleTapZoom,
scrollWheelZoomFactor: scrollWheelZoomFactor ?? this.scrollWheelZoomFactor,
doubleTapZoomFactor: doubleTapZoomFactor ?? this.doubleTapZoomFactor,
animationDuration: animationDuration ?? this.animationDuration,
animationCurve: animationCurve ?? this.animationCurve,
);