go method

Future<void> go(
  1. Locator locator, {
  2. required bool isAudioBookWithText,
  3. bool animated = false,
})

Go e.g. navigate to a specific locator in the publication.

Implementation

Future<void> go(
  final Locator locator, {
  required final bool isAudioBookWithText,
  final bool animated = false,
}) {
  R2Log.d('$name: $locator, $animated');

  return _invokeMethod(_ReaderChannelMethodInvoke.go, [
    json.encode(locator.toTextLocator()),
    animated,
    isAudioBookWithText,
  ]);
}