custom method

dynamic custom(
  1. String fontFamily,
  2. double fontSize,
  3. double letterSpacing,
  4. FontWeight fontWeight,
  5. Color color,
)

Implementation

custom(String fontFamily, double fontSize, double letterSpacing,
    FontWeight fontWeight, Color color) {
  return GoogleFonts.getFont(fontFamily,
      fontSize: fontSize,
      letterSpacing: letterSpacing,
      fontWeight: fontWeight,
      color: color);
}