Request constructor

Request({
  1. RequestEcho? echo,
  2. RequestFlush? flush,
  3. RequestInfo? info,
  4. RequestSetOption? setOption,
  5. RequestInitChain? initChain,
  6. RequestQuery? query,
  7. RequestBeginBlock? beginBlock,
  8. RequestCheckTx? checkTx,
  9. RequestDeliverTx? deliverTx,
  10. RequestEndBlock? endBlock,
  11. RequestCommit? commit,
  12. RequestListSnapshots? listSnapshots,
  13. RequestOfferSnapshot? offerSnapshot,
  14. RequestLoadSnapshotChunk? loadSnapshotChunk,
  15. RequestApplySnapshotChunk? applySnapshotChunk,
})

Implementation

factory Request({
  RequestEcho? echo,
  RequestFlush? flush,
  RequestInfo? info,
  RequestSetOption? setOption,
  RequestInitChain? initChain,
  RequestQuery? query,
  RequestBeginBlock? beginBlock,
  RequestCheckTx? checkTx,
  RequestDeliverTx? deliverTx,
  RequestEndBlock? endBlock,
  RequestCommit? commit,
  RequestListSnapshots? listSnapshots,
  RequestOfferSnapshot? offerSnapshot,
  RequestLoadSnapshotChunk? loadSnapshotChunk,
  RequestApplySnapshotChunk? applySnapshotChunk,
}) {
  final _result = create();
  if (echo != null) {
    _result.echo = echo;
  }
  if (flush != null) {
    _result.flush = flush;
  }
  if (info != null) {
    _result.info = info;
  }
  if (setOption != null) {
    _result.setOption = setOption;
  }
  if (initChain != null) {
    _result.initChain = initChain;
  }
  if (query != null) {
    _result.query = query;
  }
  if (beginBlock != null) {
    _result.beginBlock = beginBlock;
  }
  if (checkTx != null) {
    _result.checkTx = checkTx;
  }
  if (deliverTx != null) {
    _result.deliverTx = deliverTx;
  }
  if (endBlock != null) {
    _result.endBlock = endBlock;
  }
  if (commit != null) {
    _result.commit = commit;
  }
  if (listSnapshots != null) {
    _result.listSnapshots = listSnapshots;
  }
  if (offerSnapshot != null) {
    _result.offerSnapshot = offerSnapshot;
  }
  if (loadSnapshotChunk != null) {
    _result.loadSnapshotChunk = loadSnapshotChunk;
  }
  if (applySnapshotChunk != null) {
    _result.applySnapshotChunk = applySnapshotChunk;
  }
  return _result;
}