to static method

ResultType to(
  1. String str
)

Looks up the ResultType whose wire value equals str.

Implementation

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