scale property

  1. @internal
  2. @override
Vector2 get scale
override

ScaleProvider's API.

Implementation

@internal
@override
Vector2 get scale => transform.scale;
  1. @internal
  2. @override
set scale (Vector2 value)
override

Implementation

@internal
@override
set scale(Vector2 value) {
  assert(
    value.x == value.y,
    'Non-uniform scale cannot be applied to a Viewfinder: $value',
  );
  assert(value.x > 0, 'Zoom must be positive: ${value.x}');
  transform.scale = value;
  visibleRect = null;
}