addBookmark method

Future<void> addBookmark(
  1. String title,
  2. int pageNumber
)

Creates a new bookmark with the given title and page number.

pageNumber is 1-indexed.

Implementation

Future<void> addBookmark(String title, int pageNumber) {
  return _channel.invokeMethod(Functions.addBookmark, <String, dynamic>{
    Parameters.title: title,
    Parameters.pageNumber: pageNumber
  });
}