to static method

ResultType to(
  1. String str
)

Implementation

static ResultType to(String str) =>
    ResultType.values.firstWhere((e) => e.value == str);