BlockHeader constructor

BlockHeader({
  1. List<int>? rawHeader,
  2. List<int>? root,
  3. Iterable<List<int>>? branch,
})

Implementation

factory BlockHeader({
  $core.List<$core.int>? rawHeader,
  $core.List<$core.int>? root,
  $core.Iterable<$core.List<$core.int>>? branch,
}) {
  final result = create();
  if (rawHeader != null) result.rawHeader = rawHeader;
  if (root != null) result.root = root;
  if (branch != null) result.branch.addAll(branch);
  return result;
}