translate method

  1. @Native<Void Function(Pointer<Void>, Double, Double)>(Pointer<Void>, Double, Double)>(symbol: 'Canvas::translate', isLeaf: true)
void translate(
  1. double dx,
  2. double dy
)

Add a translation to the current transform, shifting the coordinate space horizontally by the first argument and vertically by the second argument.

Implementation

@Native<Void Function(Pointer<Void>, Double, Double)>(symbol: 'Canvas::translate', isLeaf: true)
external void translate(double dx, double dy);