ProtoPredefinedState_Identity constructor

ProtoPredefinedState_Identity({
  1. List<int>? address,
  2. List<int>? stake,
  3. int? invites,
  4. int? birthday,
  5. int? state,
  6. int? qualifiedFlips,
  7. int? shortFlipPoints,
  8. List<int>? pubKey,
  9. int? requiredFlips,
  10. Iterable<ProtoPredefinedState_Identity_Flip>? flips,
  11. int? generation,
  12. List<int>? code,
  13. Iterable<ProtoPredefinedState_Identity_TxAddr>? invitees,
  14. ProtoPredefinedState_Identity_TxAddr? inviter,
  15. List<int>? penalty,
  16. int? validationBits,
  17. int? validationStatus,
  18. List<int>? profileHash,
  19. List<int>? scores,
})

Implementation

factory ProtoPredefinedState_Identity({
  $core.List<$core.int>? address,
  $core.List<$core.int>? stake,
  $core.int? invites,
  $core.int? birthday,
  $core.int? state,
  $core.int? qualifiedFlips,
  $core.int? shortFlipPoints,
  $core.List<$core.int>? pubKey,
  $core.int? requiredFlips,
  $core.Iterable<ProtoPredefinedState_Identity_Flip>? flips,
  $core.int? generation,
  $core.List<$core.int>? code,
  $core.Iterable<ProtoPredefinedState_Identity_TxAddr>? invitees,
  ProtoPredefinedState_Identity_TxAddr? inviter,
  $core.List<$core.int>? penalty,
  $core.int? validationBits,
  $core.int? validationStatus,
  $core.List<$core.int>? profileHash,
  $core.List<$core.int>? scores,
}) {
  final _result = create();
  if (address != null) {
    _result.address = address;
  }
  if (stake != null) {
    _result.stake = stake;
  }
  if (invites != null) {
    _result.invites = invites;
  }
  if (birthday != null) {
    _result.birthday = birthday;
  }
  if (state != null) {
    _result.state = state;
  }
  if (qualifiedFlips != null) {
    _result.qualifiedFlips = qualifiedFlips;
  }
  if (shortFlipPoints != null) {
    _result.shortFlipPoints = shortFlipPoints;
  }
  if (pubKey != null) {
    _result.pubKey = pubKey;
  }
  if (requiredFlips != null) {
    _result.requiredFlips = requiredFlips;
  }
  if (flips != null) {
    _result.flips.addAll(flips);
  }
  if (generation != null) {
    _result.generation = generation;
  }
  if (code != null) {
    _result.code = code;
  }
  if (invitees != null) {
    _result.invitees.addAll(invitees);
  }
  if (inviter != null) {
    _result.inviter = inviter;
  }
  if (penalty != null) {
    _result.penalty = penalty;
  }
  if (validationBits != null) {
    _result.validationBits = validationBits;
  }
  if (validationStatus != null) {
    _result.validationStatus = validationStatus;
  }
  if (profileHash != null) {
    _result.profileHash = profileHash;
  }
  if (scores != null) {
    _result.scores = scores;
  }
  return _result;
}