scale property

double get scale

Gets the current canvas scale (zoom level) from the transform matrix.

Returns 1.0 if no transform is available.

Implementation

double get scale {
  final scaleX = transform.getMaxScaleOnAxis();
  return scaleX;
}