TxBody constructor

TxBody({
  1. Iterable<Any>? messages,
  2. String? memo,
  3. Int64? timeoutHeight,
  4. Iterable<Any>? extensionOptions,
  5. Iterable<Any>? nonCriticalExtensionOptions,
})

Implementation

factory TxBody({
  $core.Iterable<$0.Any>? messages,
  $core.String? memo,
  $fixnum.Int64? timeoutHeight,
  $core.Iterable<$0.Any>? extensionOptions,
  $core.Iterable<$0.Any>? nonCriticalExtensionOptions,
}) {
  final _result = create();
  if (messages != null) {
    _result.messages.addAll(messages);
  }
  if (memo != null) {
    _result.memo = memo;
  }
  if (timeoutHeight != null) {
    _result.timeoutHeight = timeoutHeight;
  }
  if (extensionOptions != null) {
    _result.extensionOptions.addAll(extensionOptions);
  }
  if (nonCriticalExtensionOptions != null) {
    _result.nonCriticalExtensionOptions.addAll(nonCriticalExtensionOptions);
  }
  return _result;
}