SpriteBatch class

Properties

frames Map<String, List<Rect>>
final
hashCode int
The hash code for this object.
no setterinherited
image Image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textures Map<String, Rect>
final

Methods

dispose() → void
draw(Canvas canvas, List<Sprite> sprites, [Paint? paint, BlendMode blendMode = BlendMode.modulate]) → void
getAnimation(String key, {required double speed, bool loop = true}) AnimationData
getTexture(String key) Rect
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

custom({required Image image, required Map<String, Rect> textures, required Map<String, List<Rect>> frames, bool flippable = false, Paint? flipPaint}) Future<SpriteBatch>
fromGdxPacker(String path, {bool flippable = false, Paint? flipPaint}) Future<SpriteBatch>
fromOldGdxPacker(String path, {bool flippable = false, Paint? flipPaint}) Future<SpriteBatch>