sprites property

Map<T, Sprite>? get sprites

Returns the sprites map.

If you want to change the contents of the map use the sprites setter and pass in a new map of sprites, or use updateSprite to update a specific sprite.

Implementation

Map<T, Sprite>? get sprites =>
    _sprites != null ? Map.unmodifiable(_sprites!) : null;
set sprites (Map<T, Sprite>? value)

Sets the given value as sprites map.

Implementation

set sprites(Map<T, Sprite>? value) {
  if (_sprites != value) {
    _sprites = value;
    _resizeToSprite();
  }
}