DataLabelRenderArgs class Null safety

Holds the onDataLabelRender event arguments.

DataLabelRenderArgs is the type of argument for the onDataLabelRender event. Whenever the data label gets rendered, the onDataLabelRender event is triggered and provides options to customize the data label text, data label text style, the background color.

It has the public properties of data label text, series, data points, and point index.


DataLabelRenderArgs([dynamic seriesRenderer, dynamic dataPoints, int? viewportPointIndex, int? pointIndex])
Creating an argument constructor of DataLabelRenderArgs class.


color Color?
Get and set the background color of a data label.
read / write
dataPoints → dynamic
Get the data points of the series.
hashCode int
The hash code for this object. [...]
read-only, inherited
offset Offset?
Get and set the horizontal/vertical position of the data label. [...]
read / write
pointIndex int?
Get the overall index value of a data label.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seriesRenderer → dynamic
Get the current series. [...]
text String
Get and set the text value of a data label.
read / write
textStyle TextStyle
Get and set the style property of the data label text.
read / write
viewportPointIndex int?
Get the viewport index value of a data label.


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


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