ChartAxisLabel constructor

ChartAxisLabel(
  1. String text,
  2. TextStyle? textStyle
)

Creating an argument constructor of ChartAxisLabel class.

Implementation

ChartAxisLabel(this.text, TextStyle? textStyle)
    : textStyle = textStyle ??
          const TextStyle(
              fontFamily: 'Roboto',
              fontStyle: FontStyle.normal,
              fontWeight: FontWeight.normal,
              fontSize: 12);