fromThemeData static method

Map<String, CSS3> fromThemeData(
  1. ThemeData theme
)

Implementation

static Map<String, CSS3> fromThemeData(ThemeData theme) => {
      'h1': CSS3.fromTextStyle(theme.textTheme.displayLarge!),
      'h2': CSS3.fromTextStyle(theme.textTheme.displayMedium!),
      'h3': CSS3.fromTextStyle(theme.textTheme.displaySmall!),
      'h4': CSS3.fromTextStyle(theme.textTheme.headlineMedium!),
      'h5': CSS3.fromTextStyle(theme.textTheme.headlineSmall!),
      'h6': CSS3.fromTextStyle(theme.textTheme.titleLarge!),
      'body': CSS3.fromTextStyle(theme.textTheme.bodyMedium!),
    };