label static method

TextStyle label({
  1. Color color = const Color(0xFF333333),
  2. double fontSize = 12,
  3. FontWeight fontWeight = FontWeight.normal,
  4. String? fontFamily,
})

Creates a default chart label style.

Implementation

static TextStyle label({
  Color color = const Color(0xFF333333),
  double fontSize = 12,
  FontWeight fontWeight = FontWeight.normal,
  String? fontFamily,
}) {
  return TextStyle(
    color: color,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontFamily: fontFamily,
  );
}