Response constructor
Response({
- ResponseException? exception,
- ResponseEcho? echo,
- ResponseFlush? flush,
- ResponseInfo? info,
- ResponseSetOption? setOption,
- ResponseInitChain? initChain,
- ResponseQuery? query,
- ResponseBeginBlock? beginBlock,
- ResponseCheckTx? checkTx,
- ResponseDeliverTx? deliverTx,
- ResponseEndBlock? endBlock,
- ResponseCommit? commit,
- ResponseListSnapshots? listSnapshots,
- ResponseOfferSnapshot? offerSnapshot,
- ResponseLoadSnapshotChunk? loadSnapshotChunk,
- ResponseApplySnapshotChunk? applySnapshotChunk,
Implementation
factory Response({
ResponseException? exception,
ResponseEcho? echo,
ResponseFlush? flush,
ResponseInfo? info,
ResponseSetOption? setOption,
ResponseInitChain? initChain,
ResponseQuery? query,
ResponseBeginBlock? beginBlock,
ResponseCheckTx? checkTx,
ResponseDeliverTx? deliverTx,
ResponseEndBlock? endBlock,
ResponseCommit? commit,
ResponseListSnapshots? listSnapshots,
ResponseOfferSnapshot? offerSnapshot,
ResponseLoadSnapshotChunk? loadSnapshotChunk,
ResponseApplySnapshotChunk? applySnapshotChunk,
}) {
final _result = create();
if (exception != null) {
_result.exception = exception;
}
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;
}