scaleX property

double scaleX

Returns the horizontal scale of the object.

Implementation

double get scaleX {
  return _scaleX;
}
void scaleX=(double? value)

Sets the x-axis scale factor of the object. Throws an error if value is null or NaN. If the value has not changed, does nothing.

Implementation

set scaleX(double? value) {
  if (value?.isNaN ?? true) {
    throw '[$this.scaleX] can not be NaN nor null';
  }
  if (_scaleX == value) {
    return;
  }
  _scaleX = value!;
  $setTransformationChanged();
}