Skip to content

Commit 3d4cd72

Browse files
committed
fixed examples
1 parent 171b52e commit 3d4cd72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ respectively `>`, `<`, `&`, `|`.
117117
```dart
118118
// final box ...
119119
120-
box.query(value.greaterThan(10).or(date.IsNull())).build();
120+
box.query(value.greaterThan(10).or(date.isNull())).build();
121121
122122
// equivalent to
123123
124-
final overloaded = (value > 10) | date.IsNull();
124+
final overloaded = (value > 10) | date.isNull();
125125
box.query(overloaded as Condition).build(); // the cast is necessary due to the type analyzer
126126
```
127127

@@ -137,7 +137,7 @@ final q = box.query(Entity_.number > 0)
137137
// ...
138138
139139
final qt = box.query(Entity_.text.notNull())
140-
.order(Entity_.text, flags: OBXOrderFlag.DESCENDING | OBXOrderFlag.CASE_SENSITIVE)
140+
.order(Entity_.text, flags: Order.descending | Order.caseSensitive)
141141
.build();
142142
```
143143

0 commit comments

Comments
 (0)