fix(llc): fix contains filter params

This commit is contained in:
Salvatore Giordano
2021-09-07 10:36:53 +02:00
parent d18286dc8d
commit fe73cf0b71
2 changed files with 4 additions and 4 deletions
@@ -52,7 +52,7 @@ enum FilterOperator {
/// Matches none of the values specified in an array.
nor,
/// Matches any list that contains the specified values
/// Matches any list that contains the specified value
contains,
}
@@ -162,8 +162,8 @@ class Filter extends Equatable {
Filter._(operator: FilterOperator.exists, key: key, value: exists);
/// Matches any list that contains the specified values
factory Filter.contains(String key, List<Object> values) =>
Filter._(operator: FilterOperator.contains, key: key, value: values);
factory Filter.contains(String key, Object value) =>
Filter._(operator: FilterOperator.contains, key: key, value: value);
/// Creates a custom [Filter] if there isn't one already available.
const factory Filter.custom({