TradeRequest constructor

const TradeRequest({
  1. required String inputToken,
  2. required String outputToken,
  3. required BigInt inputAmount,
  4. required bool exactIn,
})

Constructs a TradeRequest with the required parameters.

inputToken and outputToken are the addresses of the input and output tokens respectively, inputAmount specifies the amount of the input token to be traded, and exactIn determines the type of trade (exact input or exact output).

Implementation

const factory TradeRequest({
  required String inputToken,
  required String outputToken,
  required BigInt inputAmount,
  required bool exactIn,
}) = _TradeRequest;