BlockMetadata constructor

BlockMetadata({
  1. int? height,
  2. List<int>? hash,
  3. Int64? timestamp,
  4. bool? isFinal,
})

Implementation

factory BlockMetadata({
  $core.int? height,
  $core.List<$core.int>? hash,
  $fixnum.Int64? timestamp,
  $core.bool? isFinal,
}) {
  final result = create();
  if (height != null) result.height = height;
  if (hash != null) result.hash = hash;
  if (timestamp != null) result.timestamp = timestamp;
  if (isFinal != null) result.isFinal = isFinal;
  return result;
}