newPublicKey method

Future<PublicKey> newPublicKey({
  1. required KeyType kt,
  2. required String keyB64UrlSafe,
  3. dynamic hint,
})
override

Implementation

Future<PublicKey> newPublicKey(
    {required KeyType kt, required String keyB64UrlSafe, dynamic hint}) {
  var arg0 = api2wire_key_type(kt);
  var arg1 = _platform.api2wire_String(keyB64UrlSafe);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) =>
        _platform.inner.wire_new_public_key(port_, arg0, arg1),
    parseSuccessData: _wire2api_public_key,
    constMeta: kNewPublicKeyConstMeta,
    argValues: [kt, keyB64UrlSafe],
    hint: hint,
  ));
}