override method
TextStyle
override({
- String? fontFamily,
- Color? color,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
Implementation
TextStyle override(
{String? fontFamily,
Color? color,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle}) =>
GoogleFonts.getFont(fontFamily ?? Styles.primaryFont,
color: color ?? this.color,
fontSize: fontSize ?? this.fontSize,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle);