PollsSortField class
Defines the fields by which polls can be sorted.
This extension type provides specific fields for sorting poll data.
Constructors
-
PollsSortField(String remote, SortFieldValueGetter<
PollData, Object> localValue) - Creates a new polls sort field.
Properties
-
comparator
→ AnySortComparator<
PollData> -
The comparator function used for local sorting operations.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- remote → String
-
The remote field name used in API queries.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- createdAt → PollsSortField
-
Sort by the creation timestamp of the poll.
This field allows sorting polls by when they were created (newest/oldest first).
final
- id → PollsSortField
-
Sort by the unique identifier of the poll.
This field allows sorting polls by their unique ID.
final
- isClosed → PollsSortField
-
Sort by whether the poll is closed.
This field allows sorting polls by their closed status.
final
- name → PollsSortField
-
Sort by the name of the poll.
This field allows sorting polls alphabetically by name.
final
- updatedAt → PollsSortField
-
Sort by the last update timestamp of the poll.
This field allows sorting polls by when they were last updated (newest/oldest first).
final
- voteCount → PollsSortField
-
Sort by the number of votes the poll has received.
This field allows sorting polls by popularity (most/least voted).
final