body static method

TextStyle body(
  1. BuildContext context,
  2. TextFontSize size
)

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!;
  }
}