threadTypographyMaterialTextTheme function
Implementation
TextTheme threadTypographyMaterialTextTheme(TextTheme base, String fontFamily) {
TextStyle? apply(TextStyle? style) {
if (style == null) {
return null;
}
return _plainTextStyleWithFontFamily(style, fontFamily: fontFamily);
}
return base.copyWith(
displayLarge: apply(base.displayLarge),
displayMedium: apply(base.displayMedium),
displaySmall: apply(base.displaySmall),
headlineLarge: apply(base.headlineLarge),
headlineMedium: apply(base.headlineMedium),
headlineSmall: apply(base.headlineSmall),
titleLarge: apply(base.titleLarge),
titleMedium: apply(base.titleMedium),
titleSmall: apply(base.titleSmall),
bodyLarge: apply(base.bodyLarge),
bodyMedium: apply(base.bodyMedium),
bodySmall: apply(base.bodySmall),
labelLarge: apply(base.labelLarge),
labelMedium: apply(base.labelMedium),
labelSmall: apply(base.labelSmall),
);
}