SpriteBatch class

render a set of sprites inside a single image atlas using Canvas.drawAtlas

Constructors

SpriteBatch(Image atlas)

Properties

atlas Image
final
colors List<Color>
final
hashCode int
The hash code for this object.
no setterinherited
rects List<Rect>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transforms List<RSTransform>
final

Methods

add(Sprite sprite) → void
clear() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, {BlendMode? blendMode, Rect? cullRect, Paint? paint}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

defaultPaint Paint
final

Constants

defaultBlendMode → const BlendMode
defaultColor → const Color
defaultCullRect → const dynamic