autoResize property

bool get autoResize

Returns current value of auto resize flag.

Implementation

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

Sets the given value of autoResize flag.

Will update the size to fit srcSize of current animation sprite if set to true.

Implementation

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