PollsSort class
Represents a sorting operation for polls.
Constructors
- PollsSort.asc(PollsSortField field, {NullOrdering nullOrdering = NullOrdering.nullsLast})
-
const
- PollsSort.desc(PollsSortField field, {NullOrdering nullOrdering = NullOrdering.nullsFirst})
-
const
Properties
- direction → SortDirection
-
The direction of the sort operation (ascending or descending).
finalinherited
-
field
→ SortField<
PollData> -
The field to sort by.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nullOrdering → NullOrdering
-
How null values should be ordered in the sort operation.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compare(
PollData? a, PollData? b) → int -
Compares two objects using this sort specification.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this sort specification to a JSON representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
defaultSort
→ List<
PollsSort> -
The default sorting criteria for polls queries.
Sorts by creation date in descending order (newest first).
final