hasBookmark method

Future<bool> hasBookmark(
  1. int pageIndex
)

Checks if a bookmark exists for the specified page index.

Parameters:

  • pageIndex The index of the page to check for a bookmark. example:
bool hasBookmark = await document.hasBookmark(0);

Implementation

Future<bool> hasBookmark(int pageIndex) async {
  return await _channel.invokeMethod('has_bookmark', pageIndex);
}