Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed flutter/dart comments #678

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions templates/dart/lib/query.dart.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,22 @@ class Query {
_addQuery(attribute, 'notEqual', value);

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

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

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

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

/// Filter resources where by searching [attribute] for [value].
///
/// A fulltext index on [attribute] is required for this query to work.
static String search(String attribute, String value) =>
_addQuery(attribute, 'search', value);

Expand Down