BatchItem class

A single item in a SpriteBatch.

Holds all the important information of a batch item,

Web currently does not support Canvas.drawAtlas, so a BatchItem will automatically calculate a transform matrix based on the transform value, to be used when rendering on the web. It will initialize a destination object and a paint object.

Constructors

BatchItem({required Rect source, required RSTransform transform, required Color color})

Properties

color Color
The background color for this batch item.
final
destination Rect
The destination rectangle for the Canvas.
final
hashCode int
The hash code for this object.
no setterinherited
matrix Matrix4
Fallback matrix for the web.
final
paint Paint
Paint object used for the web.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Rect
The source rectangle on the SpriteBatch.atlas.
final
transform RSTransform
The transform values for this batch item.
final

Methods

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