ChartTextStyle constructor

const ChartTextStyle({
  1. Color? color,
  2. String fontFamily = 'Roboto',
  3. FontStyle fontStyle = FontStyle.normal,
  4. FontWeight fontWeight = FontWeight.normal,
  5. double fontSize = 12,
})

Creating an argument constructor of ChartTextStyle class.

Implementation

const ChartTextStyle(
    {this.color,
    this.fontFamily = 'Roboto',
    this.fontStyle = FontStyle.normal,
    this.fontWeight = FontWeight.normal,
    this.fontSize = 12})
    : super(
        color: color,
        fontFamily: fontFamily,
        fontStyle: fontStyle,
        fontWeight: fontWeight,
        fontSize: fontSize,
        inherit: true,
      );