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