fromValue static method

WebViewFeature? fromValue(
  1. String? value
)

Gets a possible WebViewFeature instance from String value.

Implementation

static WebViewFeature? fromValue(String? value) {
  if (value != null) {
    try {
      return WebViewFeature.values
          .firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}