translate method Null safety

  1. @FfiNative<Void Function(Pointer<Void>, Double, Double)>(Pointer<Void>, Double, Double)>('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

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