copyWithTranslate method

ZoomTransform copyWithTranslate(
  1. Offset translate
)

Creates a copy with translation from an Offset.

Implementation

ZoomTransform copyWithTranslate(Offset translate) {
  return ZoomTransform(
    scale: scale,
    translateX: translate.dx,
    translateY: translate.dy,
  );
}