isFeatureSupported static method

Future<bool> isFeatureSupported(
  1. AndroidWebViewFeature feature
)

Return whether a feature is supported at run-time. On devices running Android version Build.VERSION_CODES.LOLLIPOP and higher, this will check whether a feature is supported, depending on the combination of the desired feature, the Android version of device, and the WebView APK on the device. If running on a device with a lower API level, this will always return false.

Official Android API: https://developer.android.com/reference/androidx/webkit/WebViewFeature#isFeatureSupported(java.lang.String)

Implementation

static Future<bool> isFeatureSupported(AndroidWebViewFeature feature) =>
    PlatformWebViewFeature.static().isFeatureSupported(
        WebViewFeature.fromNativeValue(feature.toNativeValue())!);