BlockNotification constructor

BlockNotification({
  1. BlockNotification_Type? type,
  2. BlockInfo? blockInfo,
  3. Block? marshaledBlock,
  4. List<int>? serializedBlock,
})

Implementation

factory BlockNotification({
  BlockNotification_Type? type,
  BlockInfo? blockInfo,
  Block? marshaledBlock,
  $core.List<$core.int>? serializedBlock,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (blockInfo != null) {
    _result.blockInfo = blockInfo;
  }
  if (marshaledBlock != null) {
    _result.marshaledBlock = marshaledBlock;
  }
  if (serializedBlock != null) {
    _result.serializedBlock = serializedBlock;
  }
  return _result;
}