PollVotesQuery class

A query for retrieving poll votes with filtering, sorting, and pagination.

Configures how poll votes should be fetched from the Stream Feeds API including filters, sorting options, and pagination parameters.

Example

final query = PollVotesQuery(
  pollId: "poll123",
  filter: Filter.equal(PollVotesFilterField.userId, "user456"),
  sort: [PollVotesSort.desc(PollVotesSortFielddAt)],
  limit: 20,
);
Available extensions
Annotations
  • @freezed

Constructors

PollVotesQuery({required String pollId, String? userId, PollVotesFilter? filter, List<PollVotesSort>? sort, int? limit, String? next, String? previous})
const

Properties

copyWith → $PollVotesQueryCopyWith<PollVotesQuery>
Create a copy of PollVotesQuery with the given fields replaced by the non-null parameter values.
no setterinherited
filter PollVotesFilter?
Optional filter criteria for this query.
final
hashCode int
The hash code for this object.
no setterinherited
limit int?
The maximum number of poll votes to return. If not specified, the API will use its default limit.
final
next String?
The next page cursor for pagination.
final
pollId String
The unique identifier of the poll to fetch votes for.
final
previous String?
The previous page cursor for pagination.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort List<PollVotesSort>?
Array of sorting criteria for this query.
final
userId String?
Optional user ID used for authentication.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRequest() QueryPollVotesRequest

Available on PollVotesQuery, provided by the PollVotesQueryRequest extension

Converts this query to an API request format.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited