marker property

SparkChartMarker? marker
final

Enables and customizes the markers.

Markers are used to provide information about the exact point location. You can add a shape to adorn each data point. Markers can be enabled by using the displayMode property of SparkChartMarker.

Provides the options of color, borderWidth, borderColor and shape of the marker to customize the appearance.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     marker: SparkChartMarker(displayMode: SparkChartMarkerDisplayMode.all)
      )
    ),
 );
}

Implementation

final SparkChartMarker? marker;