clearClientCertPreferences method Null safety

Future<void> clearClientCertPreferences()

Clears the client certificate preferences stored in response to proceeding/cancelling client cert requests. Note that WebView automatically clears these preferences when the system keychain is updated. The preferences are shared by all the WebViews that are created by the embedder application.

NOTE: On iOS certificate-based credentials are never stored permanently.

NOTE: available on Android 21+.

Official Android API: https://developer.android.com/reference/android/webkit/WebView#clearClientCertPreferences(java.lang.Runnable)

Implementation

static Future<void> clearClientCertPreferences() async {
  Map<String, dynamic> args = <String, dynamic>{};
  await _staticChannel.invokeMethod('clearClientCertPreferences', args);
}