myValueToValue method

  1. @override
Future<Value> myValueToValue({
  1. required MyValue myValue,
  2. dynamic hint,
})
override

Implementation

@override
Future<Value> myValueToValue({required MyValue myValue, dynamic hint}) {
  return handler.executeNormal(NormalTask(
    callFfi: (port_) {
      final serializer = SseSerializer(generalizedFrbRustBinding);
      sse_encode_box_autoadd_my_value(myValue, serializer);
      pdeCallFfi(generalizedFrbRustBinding, serializer,
          funcId: 7, port: port_);
    },
    codec: SseCodec(
      decodeSuccessData:
          sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockValue,
      decodeErrorData: null,
    ),
    constMeta: kMyValueToValueConstMeta,
    argValues: [myValue],
    apiImpl: this,
    hint: hint,
  ));
}