copyWith method
Creates a copy with updated values.
Implementation
ZoomTransform copyWith({
double? scale,
double? translateX,
double? translateY,
}) {
return ZoomTransform(
scale: scale ?? this.scale,
translateX: translateX ?? this.translateX,
translateY: translateY ?? this.translateY,
);
}