copyWith method

ZoomTransform copyWith({
  1. double? scale,
  2. double? translateX,
  3. double? translateY,
})

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,
  );
}