text property

String? text
final

Legend title text.

Used to change the text of the title.

Defaults to ‘’.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      title: ChartTitle(
        text: 'Legend title'
      )
    )
  );
}

Implementation

final String? text;