toTextTheme method

TextTheme toTextTheme()

Implementation

TextTheme toTextTheme() {
  return TextTheme(
    // Display
    displayLarge: display,
    displayMedium: h1,
    displaySmall: h2,

    // Headline
    headlineLarge: h1,
    headlineMedium: h2,
    headlineSmall: h3,

    // Title
    titleLarge: h3,
    titleMedium: title,
    titleSmall: label,

    // Body
    bodyLarge: bodyLarge,
    bodyMedium: body,
    bodySmall: bodySmall,

    // Label
    labelLarge: label,
    labelMedium: labelSmall,
    labelSmall: caption,
  );
}