DotsGridStyle class

Grid style that renders dots at grid intersections.

Creates a subtle dot-based grid with dots positioned where vertical and horizontal grid lines would intersect.

The dotSize parameter controls the radius of each dot. If not provided, it defaults to the theme's gridThickness clamped to 0.5-2.0 pixels.

This style reduces visual clutter while still providing reference points for positioning and alignment.

Inheritance

Constructors

DotsGridStyle({double? dotSize})
Creates a dots grid style.
const

Properties

dotSize double?
The radius of each dot. If null, calculated from theme.gridThickness.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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