Skip to content

Commit cd83ce8

Browse files
committed
feat: update dart query classes
1 parent 6b7b7fc commit cd83ce8

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

templates/dart/lib/query.dart.twig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ class Query {
77
static notEqual(String attribute, dynamic value) =>
88
_addQuery(attribute, 'notEqual', value);
99

10-
static lesser(String attribute, dynamic value) =>
11-
_addQuery(attribute, 'lesser', value);
10+
static lessThan(String attribute, dynamic value) =>
11+
_addQuery(attribute, 'lessThan', value);
1212

13-
static lesserEqual(String attribute, dynamic value) =>
14-
_addQuery(attribute, 'lesserEqual', value);
13+
static lessThanEqual(String attribute, dynamic value) =>
14+
_addQuery(attribute, 'lessThanEqual', value);
1515

16-
static greater(String attribute, dynamic value) =>
17-
_addQuery(attribute, 'greater', value);
16+
static greaterThan(String attribute, dynamic value) =>
17+
_addQuery(attribute, 'greaterThan', value);
1818

19-
static greaterEqual(String attribute, dynamic value) =>
20-
_addQuery(attribute, 'greaterEqual', value);
19+
static greaterThanEqual(String attribute, dynamic value) =>
20+
_addQuery(attribute, 'greaterThanEqual', value);
2121

2222
static search(String attribute, String value) =>
2323
_addQuery(attribute, 'search', value);

templates/flutter/lib/query.dart.twig

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ class Query {
77
static notEqual(String attribute, dynamic value) =>
88
_addQuery(attribute, 'notEqual', value);
99

10-
static lesser(String attribute, dynamic value) =>
11-
_addQuery(attribute, 'lesser', value);
10+
static lessThan(String attribute, dynamic value) =>
11+
_addQuery(attribute, 'lessThan', value);
1212

13-
static lesserEqual(String attribute, dynamic value) =>
14-
_addQuery(attribute, 'lesserEqual', value);
13+
static lessThanEqual(String attribute, dynamic value) =>
14+
_addQuery(attribute, 'lessThanEqual', value);
1515

16-
static greater(String attribute, dynamic value) =>
17-
_addQuery(attribute, 'greater', value);
16+
static greaterThan(String attribute, dynamic value) =>
17+
_addQuery(attribute, 'greaterThan', value);
1818

19-
static greaterEqual(String attribute, dynamic value) =>
20-
_addQuery(attribute, 'greaterEqual', value);
19+
static greaterThanEqual(String attribute, dynamic value) =>
20+
_addQuery(attribute, 'greaterThanEqual', value);
2121

2222
static search(String attribute, String value) =>
2323
_addQuery(attribute, 'search', value);

0 commit comments

Comments
 (0)