GridLayer class

Inheritance

Constructors

GridLayer({required ChartViewport viewport, required ChartTheme theme, List<double> yTicks = const [], List<double> xPositions = const [], bool dashedH = true, bool dashedV = false})

Properties

cacheable bool
Whether this layer should be cached as a ui.Picture.
no setterinherited
dashedH bool
final
dashedV bool
final
hashCode int
The hash code for this object.
no setterinherited
isDirty bool
Whether this layer needs to be re-recorded on the next paint.
no setterinherited
name String
Human-readable name — used for debug logging and profiling.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme ChartTheme
final
viewport ChartViewport
final
xPositions List<double>
final
yTicks List<double>
final

Methods

clearDirty() → void
Call at the end of paint to clear the dirty flag.
inherited
markDirty() → void
Mark this layer as dirty — will be re-recorded next frame.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSizeChanged(Size size) → void
Called when canvas size changes so layers can recompute geometry.
inherited
paint(Canvas canvas, Size size) → void
Draw this layer onto canvas.
override
toString() String
A string representation of this object.
inherited

Operators

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