controlSize method

  1. @override
void controlSize(
  1. Size size
)

Implementation

@override
void controlSize(ui.Size size) {
  scaleX = size.width / width;
  scaleY = size.height / height;

  markTransformDirty();
}