copyWith method

OverlayTransform copyWith({
  1. Offset? position,
  2. double? scale,
  3. double? rotation,
})

Returns a copy with the given values replaced.

Implementation

OverlayTransform copyWith({
  Offset? position,
  double? scale,
  double? rotation,
}) => OverlayTransform(
  position: position ?? this.position,
  scale: scale ?? this.scale,
  rotation: rotation ?? this.rotation,
);