getFontStyle method

FontStyle? getFontStyle(
  1. String? value
)

Implementation

FontStyle? getFontStyle(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }

  switch (value) {
    case "italic":
      return FontStyle.italic;
    default:
      return FontStyle.normal;
  }
}