parameterMarginInfo method

  1. @override
Parameter parameterMarginInfo({
  1. required int marginId,
  2. String? symbol,
  3. required int tokenId,
  4. required int ratio,
  5. dynamic hint,
})
override

Implementation

@override
Parameter parameterMarginInfo(
    {required int marginId,
    String? symbol,
    required int tokenId,
    required int ratio,
    dynamic hint}) {
  return handler.executeSync(SyncTask(
    callFfi: () {
      var arg0 = cst_encode_u_8(marginId);
      var arg1 = cst_encode_opt_String(symbol);
      var arg2 = cst_encode_u_32(tokenId);
      var arg3 = cst_encode_u_8(ratio);
      return wire.wire_Parameter_margin_info(arg0, arg1, arg2, arg3);
    },
    codec: DcoCodec(
      decodeSuccessData:
          dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockParameter,
      decodeErrorData: dco_decode_AnyhowException,
    ),
    constMeta: kParameterMarginInfoConstMeta,
    argValues: [marginId, symbol, tokenId, ratio],
    apiImpl: this,
    hint: hint,
  ));
}