bigShouldersTextTextTheme static method Null safety

TextTheme bigShouldersTextTextTheme(
  1. [TextTheme? textTheme]
)

Applies the Big Shoulders Text font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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