SparkChartMarker constructor
const
SparkChartMarker({
- SparkChartMarkerDisplayMode displayMode = SparkChartMarkerDisplayMode.none,
- Color? borderColor,
- double borderWidth = 2,
- Color? color,
- double size = 5,
- SparkChartMarkerShape shape = SparkChartMarkerShape.circle,
Creates an instance of spark chart marker to add and customizes the marker
in spark chart widget. To make, the marker visible, set displayeMode
property value as SparkChartMarkerDisplayMode.all
.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfSparkAreaChart(
marker: SparkChartMarker(
displayMode: SparkChartMarkerDisplayMode.all)
)
),
);
}
Implementation
const SparkChartMarker(
{this.displayMode = SparkChartMarkerDisplayMode.none,
this.borderColor,
this.borderWidth = 2,
this.color,
this.size = 5,
this.shape = SparkChartMarkerShape.circle});