PathPaymentStrictReceiveOperation constructor

PathPaymentStrictReceiveOperation(
  1. Asset _sendAsset,
  2. String _sendMax,
  3. MuxedAccount _destination,
  4. Asset _destAsset,
  5. String _destAmount,
  6. List<Asset>? path,
)

Implementation

PathPaymentStrictReceiveOperation(this._sendAsset, this._sendMax,
    this._destination, this._destAsset, this._destAmount, List<Asset>? path) {
  if (path == null) {
    this._path = List<Asset>.empty(growable: true);
  } else {
    checkArgument(
        path.length <= 5, "The maximum number of assets in the path is 5");
    this._path = path;
  }
}