textStyle method

TextStyle textStyle({
  1. Color? color,
  2. Color? backgroundColor,
})

Implementation

TextStyle textStyle({Color? color, Color? backgroundColor}) {
    return TextStyle(
      color: color,
      backgroundColor: backgroundColor,
      fontFamily: family,
      fontSize: size.toDouble(),
      fontWeight: weight,
      fontStyle: style,
    );
}