LegendRenderArgs constructor Null safety

LegendRenderArgs(
  1. [int? seriesIndex,
  2. int? pointIndex]
)

Creating an argument constructor of LegendRenderArgs class.

Implementation

LegendRenderArgs([this.seriesIndex, this.pointIndex]);