Proposal constructor

Proposal({
  1. SignedMsgType? type,
  2. Int64? height,
  3. int? round,
  4. int? polRound,
  5. BlockID? blockId,
  6. Timestamp? timestamp,
  7. List<int>? signature,
})

Implementation

factory Proposal({
  SignedMsgType? type,
  $fixnum.Int64? height,
  $core.int? round,
  $core.int? polRound,
  BlockID? blockId,
  $3.Timestamp? timestamp,
  $core.List<$core.int>? signature,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (height != null) {
    _result.height = height;
  }
  if (round != null) {
    _result.round = round;
  }
  if (polRound != null) {
    _result.polRound = polRound;
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (signature != null) {
    _result.signature = signature;
  }
  return _result;
}