fromString static method

FontType fromString(
  1. String value
)

Implementation

static FontType fromString(String value) {
  return FontType.values.firstWhere((e) => e.value == value);
}