LegendTitle constructor

const LegendTitle({
  1. String? text,
  2. TextStyle? textStyle,
  3. ChartAlignment alignment = ChartAlignment.center,
})

Creating an argument constructor of LegendTitle class.

Implementation

const LegendTitle({
  this.text,
  this.textStyle,
  this.alignment = ChartAlignment.center,
});