from static method

ExtensionEnabledState from(
  1. String? value
)

Parses value and returns the matching ExtensionEnabledState if found.

Implementation

static ExtensionEnabledState from(String? value) {
  return ExtensionEnabledState.values
          .firstWhereOrNull((e) => e.name == value) ??
      ExtensionEnabledState.none;
}