TexturePackerAtlas class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sprites List<TexturePackerSprite>
The sprites contained in this atlas.
final

Methods

findSpriteByName(String name) TexturePackerSprite?
Returns the first region found with the specified name. This method uses string comparison to find the region, so the result should be cached rather than calling this method multiple times.
findSpriteByNameIndex(String name, int index) TexturePackerSprite?
Returns the first region found with the specified name and index. This method uses string comparison to find the region, so the result should be cached rather than calling this method multiple times.
findSpritesByName(String name) List<TexturePackerSprite>
Returns all regions with the specified name, ordered by smallest to largest index. This method uses string comparison to find the regions, so the result should be cached rather than calling this method multiple times.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

load(String path, {bool fromStorage = false, Images? images}) Future<TexturePackerAtlas>
Loads all the sprites from the atlas that resides on the path and returns a new TexturePackerAtlas. If fromStorage is true, the atlas will be loaded from the device's storage instead of the assets folder.