setScale method

void setScale(
  1. double value
)

Updates the scale factor and triggers a rebuild of the transform. This does not rebuild the child widget, making it efficient for animations and dynamic scaling.

value - The new scale factor.

Implementation

void setScale(double value) {
  setState(() {
    scale = value;
  });
}