getFontStyle method
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;
}
}