bookmarkToggleProvider top-level property
- @ProviderFor.new(BookmarkToggle)
final
Toggle helper. Optimistically flips local state, calls the datasource, and on failure re-fetches the canonical truth.
Consumers should ref.read(bookmarkToggleProvider.notifier).toggle(...)
then await ref.read(bookmarkToggleProvider.future) if they need
confirmation. The notifier itself does not expose mutation state —
keep widget feedback subtle (the toggled icon flip is the feedback).
Implementation
@ProviderFor(BookmarkToggle)
final bookmarkToggleProvider = BookmarkToggleProvider._();