removed breaking change

This commit is contained in:
Deven Joshi
2021-09-27 18:37:26 +05:30
parent d996eddb56
commit 98493b77d8
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
## Upcoming ## Upcoming
🛑️ Breaking Changes from `3.0.0` ✅ Added
- `Filter.notExists` now replaces `Filter.exists(key, exists: false)`. - `Filter.notExists` now replaces `Filter.exists(key, exists: false)`.
@@ -167,12 +167,11 @@ class Filter extends Equatable {
Filter._(operator: FilterOperator.autoComplete, key: key, value: text); Filter._(operator: FilterOperator.autoComplete, key: key, value: text);
/// Matches values that exist. /// Matches values that exist.
factory Filter.exists(String key) => factory Filter.exists(String key, {bool exists = true}) =>
Filter._(operator: FilterOperator.exists, key: key, value: true); Filter._(operator: FilterOperator.exists, key: key, value: exists);
/// Matches values that don't exist. /// Matches values that don't exist.
factory Filter.notExists(String key) => factory Filter.notExists(String key) => Filter.exists(key, exists: false);
Filter._(operator: FilterOperator.exists, key: key, value: false);
/// Matches any list that contains the specified values /// Matches any list that contains the specified values
factory Filter.contains(String key, Object value) => factory Filter.contains(String key, Object value) =>