InventoryEntry constructor

InventoryEntry({
  1. Hash? block,
  2. Hash? tx,
  3. int? superBlock,
})

Implementation

factory InventoryEntry({
  Hash? block,
  Hash? tx,
  int? superBlock,
}) {
  final _result = create();
  if (block != null) {
    _result.block = block;
  }
  if (tx != null) {
    _result.tx = tx;
  }
  if (superBlock != null) {
    _result.superBlock = superBlock;
  }
  return _result;
}