BatchLineRenderer class

Reusable batch renderer for efficient line drawing

Constructors

BatchLineRenderer()
Create a batch renderer

Properties

batch LineRenderBatch
Get the internal batch (for testing/inspection)
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLineWithOpacity(Offset p1, Offset p2, double distance, double maxDistance) → void
Add a line with opacity calculation
endBatch(Canvas canvas, Paint paint, Color baseColor) → void
Draw the current batch
getStats() → ({int opacityLevels, int totalLines})
Get batch statistics
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startBatch() → void
Begin a new batch
toString() String
A string representation of this object.
inherited

Operators

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