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.
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
IsBookmarkedRef

Constants

bookmarksProvider → const BookmarksFamily
All bookmarks for the current user, newest first. Pass filter to scope to one BookmarkKind.
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.
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.