Block constructor

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

Implementation

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