presentation/providers/bookmark_providers library
Classes
- BookmarksFamily
-
All bookmarks for the current user, newest first. Pass
filterto scope to one BookmarkKind. - BookmarksProvider
-
All bookmarks for the current user, newest first. Pass
filterto 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.
- BookmarkToggleProvider
- 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.
Properties
- bookmarksProvider → BookmarksFamily
-
All bookmarks for the current user, newest first. Pass
filterto scope to one BookmarkKind.final - bookmarkTargetProvider → BookmarkTargetFamily
-
Resolved display title + in-app route for bookmark.
final
- bookmarkToggleProvider → BookmarkToggleProvider
-
Toggle helper. Optimistically flips local state, calls the
datasource, and on failure re-fetches the canonical truth.
final
- isBookmarkedProvider → IsBookmarkedFamily
-
Whether the current user has bookmarked the given target. Used by
BookmarkButton to flip between filled and outlined glyph.
final
Functions
-
bookmarks(
Ref ref, {BookmarkKind? filter}) → Future< List< Bookmark> > -
All bookmarks for the current user, newest first. Pass
filterto scope to one BookmarkKind. -
bookmarkTarget(
Ref ref, Bookmark bookmark) → Future< ({String route, String title})> -
Resolved display title + in-app route for
bookmark. -
isBookmarked(
Ref 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.