getTypographyStyle method

TextStyle getTypographyStyle(
  1. FTypography typography
)

Implementation

TextStyle getTypographyStyle(FTypography typography) {
  return switch (this) {
    VTitleSize.extraSmall => typography.xs,
    VTitleSize.small => typography.sm,
    VTitleSize.medium => typography.md,
    VTitleSize.large => typography.lg,
    VTitleSize.extraLarge => typography.xl,
  };
}