autoResize property

bool autoResize

Returns current value of auto resize flag.

Implementation

bool get autoResize => _autoResize;
void autoResize=(bool value)

Sets the given value of autoResize flag. Will update the size to fit srcSize of current sprite if set to true.

Implementation

set autoResize(bool value) {
  _autoResize = value;
  _resizeToSprite();
}