fromString static method

dynamic fromString(
  1. String str
)

Implementation

static fromString(String str) => values.firstWhere((e) => e.name == str);