MajorGridLines class

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>?
Any number of values can be provided in the list. Odd value is considered as rendering size and even value is considered as a gap.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Width of the major grid lines.
final

Methods

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

Operators

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