CrossGridStyle class
Grid style that renders small crosses at grid intersections.
Creates a subtle grid pattern by drawing small cross marks where vertical and horizontal grid lines would intersect.
The crossSize parameter controls the arm length of each cross. If not provided, it defaults to theme.gridThickness * 3, clamped to 2.0-6.0 pixels.
This style provides a unique visual reference that's more distinct than dots while remaining less prominent than full lines.
Constructors
- CrossGridStyle({double? crossSize})
-
Creates a cross grid style.
const
Properties
Methods
-
createGridPaint(
NodeFlowTheme theme) → Paint -
Helper to create a base paint object with grid color and thickness.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Size size, NodeFlowTheme theme, GraphViewport viewport) → void -
Paints the grid pattern on the canvas.
inherited
-
paintGrid(
Canvas canvas, NodeFlowTheme theme, ({double bottom, double left, double right, double top}) gridArea) → void -
Renders the style-specific grid pattern.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited