setLocation method

Future<void> setLocation(
  1. Locator locator,
  2. bool isAudioBookWithText
)

Set the current location to the given locator.

Implementation

Future<void> setLocation(
  final Locator locator,
  final bool isAudioBookWithText,
) async => _invokeMethod(_ReaderChannelMethodInvoke.setLocation, [
  json.encode(locator),
  isAudioBookWithText,
]);