ProtoBlock constructor

ProtoBlock({
  1. ProtoBlockHeader? header,
  2. ProtoBlockBody? body,
})

Implementation

factory ProtoBlock({
  ProtoBlockHeader? header,
  ProtoBlockBody? body,
}) {
  final _result = create();
  if (header != null) {
    _result.header = header;
  }
  if (body != null) {
    _result.body = body;
  }
  return _result;
}