Proposition constructor

Implementation

factory Proposition({
  Proposition_Locked? locked,
  Proposition_Digest? digest,
  Proposition_DigitalSignature? digitalSignature,
  Proposition_HeightRange? heightRange,
  Proposition_TickRange? tickRange,
  Proposition_ExactMatch? exactMatch,
  Proposition_LessThan? lessThan,
  Proposition_GreaterThan? greaterThan,
  Proposition_EqualTo? equalTo,
  Proposition_Threshold? threshold,
  Proposition_Not? not,
  Proposition_And? and,
  Proposition_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;
}