BookmarksQuery class
A query for retrieving bookmarks with filtering, sorting, and pagination.
Supports comprehensive bookmark discovery with flexible filtering options and efficient pagination.
Example
final query = BookmarksQuery(
filter: Filter.equal(BookmarksFilterField.userId, "user123"),
sort: [BookmarksSort.desc(BookmarksSortFielddAt)],
limit: 20,
);
- Available extensions
- Annotations
-
- @freezed
Constructors
-
BookmarksQuery.new({Filter<
BookmarksFilterField> ? filter, List<BookmarksSort> ? sort, int? limit, String? next, String? previous}) -
const
Properties
-
copyWith
→ $BookmarksQueryCopyWith<
BookmarksQuery> -
Create a copy of BookmarksQuery
with the given fields replaced by the non-null parameter values.
no setterinherited
-
filter
→ Filter<
BookmarksFilterField> ? -
The filter criteria for this query.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int?
-
The maximum number of bookmarks to return.
final
- next → String?
-
The next page cursor for pagination.
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<
BookmarksSort> ? -
The sorting criteria for this query.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toRequest(
) → QueryBookmarksRequest -
Available on BookmarksQuery, provided by the BookmarksQueryRequest 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