MajorGridLines class Null safety

Customizes the major grid lines.

This class Renders the major grid lines for the axis.

To render major grid lines, create an instance of MajorGridLines, and assign it to the major gridLines property of ChartAxis. Major grid lines can be drawn for each axis on the plot area.

Provides options for color, width, and dashArray to customize the appearance.

Annotations

Constructors

MajorGridLines({double width = 0.7, Color? color, List<double>? dashArray})
Creating an argument constructor of MajorGridLines class.
const

Properties

color Color?
Color of the major grid lines. [...]
final
dashArray List<double>?
Dashes of the major grid lines. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width double
Width of the major grid lines. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override