LegendRenderArgs class Null safety

Holds the onLegendItemRender event arguments.

The onLegendItemRender event triggers when the legend item is rendering and can customize the text, legendIconType, and color.

Note: pointIndex and color is applicable for SfCircularChart, SfPyramidChart and SfFunnelChart.

Constructors

LegendRenderArgs([int? seriesIndex, int? pointIndex])
Creating an argument constructor of LegendRenderArgs class.

Properties

color Color?
Get and set the color of the legend icon.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
legendIconType LegendIconType?
Get and set the shape of a legend.
read / write
pointIndex int?
Get the current point index.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seriesIndex int?
Get the current series index.
final
text String?
Get and set the legend text.
read / write

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. [...]
inherited