Request constructor
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,
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;
}