resolveFontStyle static method

FontStyle resolveFontStyle(
  1. String? fontStyle
)

Implementation

static FontStyle resolveFontStyle(String? fontStyle) {
  switch (fontStyle) {
    case 'oblique':
    case 'italic':
      return FontStyle.italic;
    case 'normal':
    default:
      return FontStyle.normal;
  }
}