RpcBlock constructor

RpcBlock({
  1. RpcBlockHeader? header,
  2. Iterable<RpcTransaction>? transactions,
  3. RpcBlockVerboseData? verboseData,
})

Implementation

factory RpcBlock({
  RpcBlockHeader? header,
  $core.Iterable<RpcTransaction>? transactions,
  RpcBlockVerboseData? verboseData,
}) {
  final _result = create();
  if (header != null) {
    _result.header = header;
  }
  if (transactions != null) {
    _result.transactions.addAll(transactions);
  }
  if (verboseData != null) {
    _result.verboseData = verboseData;
  }
  return _result;
}