TxResponse constructor

TxResponse({
  1. Int64? height,
  2. String? txhash,
  3. String? codespace,
  4. int? code,
  5. String? data,
  6. String? rawLog,
  7. Iterable<ABCIMessageLog>? logs,
  8. String? info,
  9. Int64? gasWanted,
  10. Int64? gasUsed,
  11. Any? tx,
  12. String? timestamp,
  13. Iterable<Event>? events,
})

Implementation

factory TxResponse({
  $fixnum.Int64? height,
  $core.String? txhash,
  $core.String? codespace,
  $core.int? code,
  $core.String? data,
  $core.String? rawLog,
  $core.Iterable<ABCIMessageLog>? logs,
  $core.String? info,
  $fixnum.Int64? gasWanted,
  $fixnum.Int64? gasUsed,
  $1.Any? tx,
  $core.String? timestamp,
  $core.Iterable<$0.Event>? events,
}) {
  final _result = create();
  if (height != null) {
    _result.height = height;
  }
  if (txhash != null) {
    _result.txhash = txhash;
  }
  if (codespace != null) {
    _result.codespace = codespace;
  }
  if (code != null) {
    _result.code = code;
  }
  if (data != null) {
    _result.data = data;
  }
  if (rawLog != null) {
    _result.rawLog = rawLog;
  }
  if (logs != null) {
    _result.logs.addAll(logs);
  }
  if (info != null) {
    _result.info = info;
  }
  if (gasWanted != null) {
    _result.gasWanted = gasWanted;
  }
  if (gasUsed != null) {
    _result.gasUsed = gasUsed;
  }
  if (tx != null) {
    _result.tx = tx;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (events != null) {
    _result.events.addAll(events);
  }
  return _result;
}