fromValue static method

PromptType fromValue(
  1. String value
)

Implementation

static PromptType fromValue(String value) {
  return values.firstWhere((element) {
    return element.value == value;
  }, orElse: () => PromptType.unknown);
}