override method

TextStyle override({
  1. String? fontFamily,
  2. Color? color,
  3. double? fontSize,
  4. FontWeight? fontWeight,
  5. 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);