LegendTitle constructor
const
LegendTitle({
- String? text,
- TextStyle? textStyle,
- ChartAlignment? alignment,
Creating an argument constructor of LegendTitle class.
Implementation
const LegendTitle({this.text, this.textStyle, ChartAlignment? alignment})
: alignment = alignment ?? ChartAlignment.center;