transformCanvas method

  1. @override
void transformCanvas(
  1. Canvas canvas
)
override

Implementation

@override
void transformCanvas(Canvas canvas) {
  canvas.translate(size.x / 2, size.y / 2);
  super.transformCanvas(canvas);
  canvas.translate(-(size.x / 2) / scale.x, -(size.y / 2) / scale.y);
}