DataFilter class abstract
Base class for creating data filters.
This abstract class defines common properties and methods for filtering data sets, such as pagination, sorting, and search functionality.
- Implemented types
- Implementers
Constructors
Properties
-
fields
→ List<
FilterField> -
A list of filter fields to be applied to the data set.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- orderBy ↔ String?
-
Field name to order by.
getter/setter pair
- orderType ↔ String?
-
Order orientation.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search ↔ String?
-
Search field.
getter/setter pair
- skip ↔ int
-
Number of entities to skip.
getter/setter pair
- take ↔ int
-
Number of entities to take in a request.
getter/setter pair
- viewCode ↔ String?
-
Document view code.
getter/setter pair
Methods
-
fromJSON(
dynamic json) → void -
Populates this filter from a JSON-compatible map.
override
-
nextPage(
) → int -
Calculates the next page to be fetched based on the current
skip
andtake
values. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → Map< String, dynamic> -
Converts this filter to a JSON-compatible map.
override
-
toString(
) → String -
Converts this filter to a JSON string.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- orderAsc → const String
- Constant for ascending order.
- orderDesc → const String
- Constant for descending order.
- viewCodeAll → const String
- Constant for the "ALL" view code.
- viewCodeApproved → const String
- Constant for the "APPROVED" view code.
- viewCodeOwner → const String
- Constant for the "OWNER" view code.
- viewCodePending → const String
- Constant for the "PENDING" view code.