bebasNeueTextTheme static method Null safety

TextTheme bebasNeueTextTheme(
  1. [TextTheme? textTheme]
)

Applies the Bebas Neue font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

static TextTheme bebasNeueTextTheme([TextTheme? textTheme]) {
  textTheme ??= ThemeData.light().textTheme;
  return TextTheme(
    displayLarge: GoogleFonts.bebasNeue(textStyle: textTheme.displayLarge),
    displayMedium: GoogleFonts.bebasNeue(textStyle: textTheme.displayMedium),
    displaySmall: GoogleFonts.bebasNeue(textStyle: textTheme.displaySmall),
    headlineLarge: GoogleFonts.bebasNeue(textStyle: textTheme.headlineLarge),
    headlineMedium:
        GoogleFonts.bebasNeue(textStyle: textTheme.headlineMedium),
    headlineSmall: GoogleFonts.bebasNeue(textStyle: textTheme.headlineSmall),
    titleLarge: GoogleFonts.bebasNeue(textStyle: textTheme.titleLarge),
    titleMedium: GoogleFonts.bebasNeue(textStyle: textTheme.titleMedium),
    titleSmall: GoogleFonts.bebasNeue(textStyle: textTheme.titleSmall),
    bodyLarge: GoogleFonts.bebasNeue(textStyle: textTheme.bodyLarge),
    bodyMedium: GoogleFonts.bebasNeue(textStyle: textTheme.bodyMedium),
    bodySmall: GoogleFonts.bebasNeue(textStyle: textTheme.bodySmall),
    labelLarge: GoogleFonts.bebasNeue(textStyle: textTheme.labelLarge),
    labelMedium: GoogleFonts.bebasNeue(textStyle: textTheme.labelMedium),
    labelSmall: GoogleFonts.bebasNeue(textStyle: textTheme.labelSmall),
  );
}