acmeTextTheme method Null safety

TextTheme acmeTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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