importKey method

Future<CryptoKey> importKey(
  1. KeyFormat format,
  2. dynamic keyData,
  3. dynamic algorithm,
  4. bool extractable,
  5. Iterable<KeyUsage> keyUsages,
)

Implementation

Future<CryptoKey> importKey(KeyFormat format, dynamic keyData,
        dynamic algorithm, bool extractable, Iterable<KeyUsage> keyUsages) =>
    js_util.promiseToFuture(js_util.callMethod(this, 'importKey', [
      format.value,
      keyData,
      algorithm,
      extractable,
      keyUsages.map((e) => e.value)
    ]));