toViewKey method

  1. @override
String toViewKey({
  1. required String pk,
  2. dynamic hint,
})
override

Implementation

@override
String toViewKey({required String pk, dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_String(pk, serializer);
      return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 4)!;
    },
    codec: SseCodec(
      decodeSuccessData: sse_decode_String,
      decodeErrorData: null,
    ),
    constMeta: kToViewKeyConstMeta,
    argValues: [pk],
    apiImpl: this,
    hint: hint,
  ));
}