Block constructor

Block({
  1. BlockHeader? header,
  2. BlockBody? body,
})

Implementation

factory Block({
  $21.BlockHeader? header,
  BlockBody? body,
}) {
  final _result = create();
  if (header != null) {
    _result.header = header;
  }
  if (body != null) {
    _result.body = body;
  }
  return _result;
}