presentation/providers/bookmark_providers library

Classes

BookmarksFamily
All bookmarks for the current user, newest first. Pass filter to scope to one BookmarkKind.
BookmarksProvider
All bookmarks for the current user, newest first. Pass filter to scope to one BookmarkKind.
BookmarkTargetFamily
Resolved display title + in-app route for bookmark.
BookmarkTargetProvider
Resolved display title + in-app route for bookmark.
BookmarkToggle
Toggle helper. Optimistically flips local state, calls the datasource, and on failure re-fetches the canonical truth.
IsBookmarkedFamily
Whether the current user has bookmarked the given target. Used by BookmarkButton to flip between filled and outlined glyph.
IsBookmarkedProvider
Whether the current user has bookmarked the given target. Used by BookmarkButton to flip between filled and outlined glyph.

Mixins

BookmarksRef
BookmarkTargetRef
IsBookmarkedRef

Constants

bookmarksProvider → const BookmarksFamily
All bookmarks for the current user, newest first. Pass filter to scope to one BookmarkKind.
bookmarkTargetProvider → const BookmarkTargetFamily
Resolved display title + in-app route for bookmark.
isBookmarkedProvider → const IsBookmarkedFamily
Whether the current user has bookmarked the given target. Used by BookmarkButton to flip between filled and outlined glyph.

Properties

bookmarkToggleProvider → AutoDisposeAsyncNotifierProviderImpl<BookmarkToggle, void>
Toggle helper. Optimistically flips local state, calls the datasource, and on failure re-fetches the canonical truth.
final

Functions

bookmarks(Ref<Object?> ref, {BookmarkKind? filter}) Future<List<Bookmark>>
All bookmarks for the current user, newest first. Pass filter to scope to one BookmarkKind.
bookmarkTarget(Ref<Object?> ref, Bookmark bookmark) Future<({String route, String title})>
Resolved display title + in-app route for bookmark.
isBookmarked(Ref<Object?> ref, {required BookmarkKind kind, required String targetId}) Future<bool>
Whether the current user has bookmarked the given target. Used by BookmarkButton to flip between filled and outlined glyph.