ChartTextStyle constructor
const
ChartTextStyle({
- Color? color,
- String fontFamily = 'Roboto',
- FontStyle fontStyle = FontStyle.normal,
- FontWeight fontWeight = FontWeight.normal,
- 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,
);