select method
Selects a TextStyle from the ThemeData.textTheme.
Implementation
@override
TextStyle select(TextTheme theme) => switch (this) {
// dart format off
displayLarge => theme.displayLarge!,
displayMedium => theme.displayMedium!,
displaySmall => theme.displaySmall!,
headlineLarge => theme.headlineLarge!,
headlineMedium => theme.headlineMedium!,
headlineSmall => theme.headlineSmall!,
titleLarge => theme.titleLarge!,
titleMedium => theme.titleMedium!,
titleSmall => theme.titleSmall!,
labelLarge => theme.labelLarge!,
labelMedium => theme.labelMedium!,
labelSmall => theme.labelSmall!,
bodyLarge => theme.bodyLarge!,
bodyMedium => theme.bodyMedium!,
bodySmall => theme.bodySmall!,
// dart format on
};