fromNativeValue static method

AndroidWebViewFeature? fromNativeValue(
  1. String? value
)

Gets a possible AndroidWebViewFeature instance from a native value.

Implementation

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