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