scale property
ScaleProvider's API.
Implementation
@internal
@override
Vector2 get scale => transform.scale;
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;
}