AxisTitle constructor

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

Creating an argument constructor of AxisTitle class.

Implementation

AxisTitle(
    {this.text, TextStyle? textStyle, this.alignment = ChartAlignment.center})
    : textStyle = getTextStyle(
          textStyle: textStyle,
          fontFamily: 'Segoe UI',
          fontSize: 15.0,
          fontStyle: FontStyle.normal,
          fontWeight: FontWeight.normal);