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;
}