@@ -126,28 +126,31 @@ class QueryByteVectorProperty<EntityT>
126
126
class QueryIntegerProperty <EntityT > extends QueryProperty <EntityT , int > {
127
127
QueryIntegerProperty (ModelProperty model) : super (model);
128
128
129
- Condition <EntityT > _op (int p, _ConditionOp cop ) =>
130
- _IntegerCondition <EntityT , int >(cop, this , p, 0 );
129
+ Condition <EntityT > _op (_ConditionOp cop, int p1, [ int p2 = 0 ] ) =>
130
+ _IntegerCondition <EntityT , int >(cop, this , p1, p2 );
131
131
132
132
Condition <EntityT > _opList (List <int > list, _ConditionOp cop) =>
133
133
_IntegerListCondition <EntityT >(cop, this , list);
134
134
135
- Condition <EntityT > equals (int p) => _op (p, _ConditionOp .eq);
135
+ Condition <EntityT > equals (int p) => _op (_ConditionOp .eq, p );
136
136
137
- Condition <EntityT > notEquals (int p) => _op (p, _ConditionOp .notEq);
137
+ Condition <EntityT > notEquals (int p) => _op (_ConditionOp .notEq, p );
138
138
139
- Condition <EntityT > greaterThan (int p) => _op (p, _ConditionOp .gt);
139
+ Condition <EntityT > greaterThan (int p) => _op (_ConditionOp .gt, p );
140
140
141
- Condition <EntityT > greaterOrEqual (int p) => _op (p, _ConditionOp .greaterOrEq);
141
+ Condition <EntityT > greaterOrEqual (int p) => _op (_ConditionOp .greaterOrEq, p );
142
142
143
- Condition <EntityT > lessThan (int p) => _op (p, _ConditionOp .lt);
143
+ Condition <EntityT > lessThan (int p) => _op (_ConditionOp .lt, p );
144
144
145
- Condition <EntityT > lessOrEqual (int p) => _op (p, _ConditionOp .lessOrEq);
145
+ Condition <EntityT > lessOrEqual (int p) => _op (_ConditionOp .lessOrEq, p );
146
146
147
147
Condition <EntityT > operator < (int p) => lessThan (p);
148
148
149
149
Condition <EntityT > operator > (int p) => greaterThan (p);
150
150
151
+ Condition <EntityT > between (int p1, int p2) =>
152
+ _op (_ConditionOp .between, p1, p2);
153
+
151
154
Condition <EntityT > oneOf (List <int > list) => _opList (list, _ConditionOp .oneOf);
152
155
153
156
Condition <EntityT > notOneOf (List <int > list) =>
0 commit comments