whereNotIn method
Filters items where a field value is not in a list of values
Example:
final result = response.whereNotIn('status', ['deleted', 'blocked']);
field The field name to check
values List of disallowed values
Implementation
PaginatedModel<T> whereNotIn(String field, List<dynamic> values) {
return where((item) {
final map = item.toJson();
return !values.contains(map[field]);
});
}