body static method
Body Text
Implementation
static TextStyle body(BuildContext context, TextFontSize size) {
final theme = Theme.of(context).textTheme;
switch (size) {
case TextFontSize.large:
return theme.bodyLarge!;
case TextFontSize.medium:
return theme.bodyMedium!;
case TextFontSize.small:
return theme.bodySmall!;
}
}