PathPaymentStrictSendOperation constructor

PathPaymentStrictSendOperation(
  1. Asset _sendAsset,
  2. String _sendAmount,
  3. MuxedAccount _destination,
  4. Asset _destAsset,
  5. String _destMin,
  6. List<Asset>? path,
)

Implementation

PathPaymentStrictSendOperation(this._sendAsset, this._sendAmount,
    this._destination, this._destAsset, this._destMin, 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;
  }
}