ChartTitle constructor

ChartTitle({
  1. String text = '',
  2. TextStyle? textStyle,
  3. ChartAlignment alignment = ChartAlignment.center,
  4. Color borderColor = Colors.transparent,
  5. double borderWidth = 0,
  6. Color? backgroundColor,
})

Creating an argument constructor of ChartTitle class.

Implementation

ChartTitle(
    {this.text = '',
    TextStyle? textStyle,
    this.alignment = ChartAlignment.center,
    this.borderColor = Colors.transparent,
    this.borderWidth = 0,
    this.backgroundColor})
    : textStyle = getTextStyle(
          textStyle: textStyle,
          fontSize: 15.0,
          fontFamily: 'Segoe UI',
          fontStyle: FontStyle.normal,
          fontWeight: FontWeight.normal);