LegendTitle constructor

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

Creating an argument constructor of LegendTitle class.

Implementation

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