Skip to content

Commit 3801bf9

Browse files
committed
update doc
1 parent b8a91f1 commit 3801bf9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

templates/dart/lib/query.dart.twig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,42 @@ class Query {
1313
_addQuery(attribute, 'equal', value);
1414

1515
/// Filter resources where [attribute] is not equal to [value].
16+
///
17+
/// [value] can be a single value or a list. If a list is used
18+
/// the query will return resources where [attribute] is equal
19+
/// to any of the values in the list.
1620
static String notEqual(String attribute, dynamic value) =>
1721
_addQuery(attribute, 'notEqual', value);
1822

1923
/// Filter resources where [attribute] is less than [value].
24+
///
25+
/// [value] can be a single value or a list. If a list is used
26+
/// the query will return resources where [attribute] is equal
27+
/// to any of the values in the list.
2028
static String lessThan(String attribute, dynamic value) =>
2129
_addQuery(attribute, 'lessThan', value);
2230

2331
/// Filter resources where [attribute] is less than or equal to [value].
32+
///
33+
/// [value] can be a single value or a list. If a list is used
34+
/// the query will return resources where [attribute] is equal
35+
/// to any of the values in the list.
2436
static String lessThanEqual(String attribute, dynamic value) =>
2537
_addQuery(attribute, 'lessThanEqual', value);
2638

2739
/// Filter resources where [attribute] is greater than [value].
40+
///
41+
/// [value] can be a single value or a list. If a list is used
42+
/// the query will return resources where [attribute] is equal
43+
/// to any of the values in the list.
2844
static String greaterThan(String attribute, dynamic value) =>
2945
_addQuery(attribute, 'greaterThan', value);
3046

3147
/// Filter resources where [attribute] is greater than or equal to [value].
48+
///
49+
/// [value] can be a single value or a list. If a list is used
50+
/// the query will return resources where [attribute] is equal
51+
/// to any of the values in the list.
3252
static String greaterThanEqual(String attribute, dynamic value) =>
3353
_addQuery(attribute, 'greaterThanEqual', value);
3454

0 commit comments

Comments
 (0)