Proof constructor

Proof({
  1. Proof_Locked? locked,
  2. Proof_Digest? digest,
  3. Proof_DigitalSignature? digitalSignature,
  4. Proof_HeightRange? heightRange,
  5. Proof_TickRange? tickRange,
  6. Proof_ExactMatch? exactMatch,
  7. Proof_LessThan? lessThan,
  8. Proof_GreaterThan? greaterThan,
  9. Proof_EqualTo? equalTo,
  10. Proof_Threshold? threshold,
  11. Proof_Not? not,
  12. Proof_And? and,
  13. Proof_Or? or,
})

Implementation

factory Proof({
  Proof_Locked? locked,
  Proof_Digest? digest,
  Proof_DigitalSignature? digitalSignature,
  Proof_HeightRange? heightRange,
  Proof_TickRange? tickRange,
  Proof_ExactMatch? exactMatch,
  Proof_LessThan? lessThan,
  Proof_GreaterThan? greaterThan,
  Proof_EqualTo? equalTo,
  Proof_Threshold? threshold,
  Proof_Not? not,
  Proof_And? and,
  Proof_Or? or,
}) {
  final _result = create();
  if (locked != null) {
    _result.locked = locked;
  }
  if (digest != null) {
    _result.digest = digest;
  }
  if (digitalSignature != null) {
    _result.digitalSignature = digitalSignature;
  }
  if (heightRange != null) {
    _result.heightRange = heightRange;
  }
  if (tickRange != null) {
    _result.tickRange = tickRange;
  }
  if (exactMatch != null) {
    _result.exactMatch = exactMatch;
  }
  if (lessThan != null) {
    _result.lessThan = lessThan;
  }
  if (greaterThan != null) {
    _result.greaterThan = greaterThan;
  }
  if (equalTo != null) {
    _result.equalTo = equalTo;
  }
  if (threshold != null) {
    _result.threshold = threshold;
  }
  if (not != null) {
    _result.not = not;
  }
  if (and != null) {
    _result.and = and;
  }
  if (or != null) {
    _result.or = or;
  }
  return _result;
}