IsBookmarkedProvider constructor

IsBookmarkedProvider({
  1. required BookmarkKind kind,
  2. required String targetId,
})

Whether the current user has bookmarked the given target. Used by BookmarkButton to flip between filled and outlined glyph.

Copied from isBookmarked.

Implementation

IsBookmarkedProvider({required BookmarkKind kind, required String targetId})
  : this._internal(
      (ref) => isBookmarked(
        ref as IsBookmarkedRef,
        kind: kind,
        targetId: targetId,
      ),
      from: isBookmarkedProvider,
      name: r'isBookmarkedProvider',
      debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
          ? null
          : _$isBookmarkedHash,
      dependencies: IsBookmarkedFamily._dependencies,
      allTransitiveDependencies:
          IsBookmarkedFamily._allTransitiveDependencies,
      kind: kind,
      targetId: targetId,
    );