getFontStyle method

TypographyFontStyle getFontStyle()

Implementation

TypographyFontStyle getFontStyle() {
  switch (fontStyle) {
    case 'underline':
      return TypographyFontStyle.underline;
    case 'bold':
      return TypographyFontStyle.bold;
    case 'italic':
      return TypographyFontStyle.italic;
    case 'line':
      return TypographyFontStyle.line;
    default:
      return TypographyFontStyle.none;
  }
}