apply method

NeomageTextTheme apply({
  1. required Color color,
})

Returns a copy of this theme with all styles applied the given color.

Implementation

NeomageTextTheme apply({required Color color}) {
  return NeomageTextTheme(
    displayLarge: displayLarge.copyWith(color: color),
    displayMedium: displayMedium.copyWith(color: color),
    headlineLarge: headlineLarge.copyWith(color: color),
    headlineMedium: headlineMedium.copyWith(color: color),
    titleLarge: titleLarge.copyWith(color: color),
    titleMedium: titleMedium.copyWith(color: color),
    bodyLarge: bodyLarge.copyWith(color: color),
    bodyMedium: bodyMedium.copyWith(color: color),
    bodySmall: bodySmall.copyWith(color: color),
    labelLarge: labelLarge.copyWith(color: color),
    labelMedium: labelMedium.copyWith(color: color),
    labelSmall: labelSmall.copyWith(color: color),
    code: code.copyWith(color: color),
    codeSmall: codeSmall.copyWith(color: color),
    terminal: terminal.copyWith(color: color),
  );
}