getSafeBrowsingPrivacyPolicyUrl method Null safety

Future<Uri?> getSafeBrowsingPrivacyPolicyUrl()

Returns a URL pointing to the privacy policy for Safe Browsing reporting.

This method should only be called if AndroidWebViewFeature.isFeatureSupported returns true for AndroidWebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL.

Official Android API: https://developer.android.com/reference/androidx/webkit/WebViewCompat#getSafeBrowsingPrivacyPolicyUrl()

Implementation

static Future<Uri?> getSafeBrowsingPrivacyPolicyUrl() async {
  Map<String, dynamic> args = <String, dynamic>{};
  String? url = await _staticChannel.invokeMethod(
      'getSafeBrowsingPrivacyPolicyUrl', args);
  return url != null ? Uri.parse(url) : null;
}