TooltipArgs constructor Null safety

TooltipArgs(
  1. [dynamic seriesIndex,
  2. List? dataPoints,
  3. num? viewportPointIndex,
  4. num? pointIndex]
)

Creating an argument constructor of TooltipArgs class.

Implementation

TooltipArgs(
    [this.seriesIndex,
    this.dataPoints,
    this.viewportPointIndex,
    this.pointIndex]);