autoResize property
Returns current value of auto resize flag.
Implementation
bool get autoResize => _autoResize;
Sets the given value of autoResize flag. Will update the size
to fit srcSize of sprite
if set to true.
Implementation
set autoResize(bool value) {
_autoResize = value;
_resizeToSprite();
}