fromValue static method

AndroidWebViewFeature? fromValue(
  1. String? value
)

Gets a possible AndroidWebViewFeature instance from String value.

Implementation

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