convertStringToStyle method

FontStyle convertStringToStyle()

Implementation

FontStyle convertStringToStyle() {
  switch (fontStyle) {
    case 'italic':
      return FontStyle.italic;
    default:
      return FontStyle.normal;
  }
}