name property
Name of the series.
The name will be displayed in legend item by default. If name is not specified for the series, then the current series index with series text prefix will be considered as series name.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <BubbleSeries<BubbleData, num>>[
BubbleSeries<BubbleData, num>(
name: 'Bubble Series',
),
],
);
}
Implementation
@override
final String? name;