getCurrentLocator method

Future<Locator?> getCurrentLocator()

Get the current locator.

Implementation

Future<Locator?> getCurrentLocator() async =>
    await _invokeMethod<dynamic>(
      _ReaderChannelMethodInvoke.getCurrentLocator,
      [],
    ).then(
      (locStr) => locStr != null
          ? Locator.fromJson(json.decode(locStr) as Map<String, dynamic>)
          : null,
    );