scale property

  1. @override
NotifyingVector2 scale
override

The scale factor of this component. The scale can be different along the X and Y dimensions. A scale greater than 1 makes the component bigger, and less than 1 smaller. The scale can also be negative, which results in a mirror reflection along the corresponding axis.

Implementation

@override
NotifyingVector2 get scale => transform.scale;
  1. @override
void scale=(Vector2 scale)
override

Implementation

@override
set scale(Vector2 scale) => transform.scale = scale;