Commit constructor

Commit({
  1. Int64? height,
  2. int? round,
  3. BlockID? blockId,
  4. Iterable<CommitSig>? signatures,
})

Implementation

factory Commit({
  $fixnum.Int64? height,
  $core.int? round,
  BlockID? blockId,
  $core.Iterable<CommitSig>? signatures,
}) {
  final _result = create();
  if (height != null) {
    _result.height = height;
  }
  if (round != null) {
    _result.round = round;
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (signatures != null) {
    _result.signatures.addAll(signatures);
  }
  return _result;
}