getDisplayStyle static method
Implementation
static TextStyle getDisplayStyle(
BuildContext context, DisplaySize? displaySize) {
final TextTheme textTheme = Theme.of(context).textTheme;
switch (displaySize) {
case DisplaySize.large:
return textTheme.displayLarge!;
case DisplaySize.medium:
return textTheme.displayMedium!;
case DisplaySize.small:
return textTheme.displaySmall!;
default:
return textTheme.displayMedium!;
}
}