setCertificates method
Sets a list of certificates to use in the browser. The extension should call this function after initialization and on every change in the set of currently available certificates. The extension should also call this function in response to onCertificatesUpdateRequested every time this event is received. |details|: The certificates to set. Invalid certificates will be ignored. |callback|: Called upon completion.
Implementation
Future<void> setCertificates(SetCertificatesDetails details) async {
await promiseToFuture<void>(
$js.chrome.certificateProvider.setCertificates(details.toJS));
}