LocatorTask.withUri constructor

LocatorTask.withUri(
  1. Uri uri
)

Creates a new locator task object.

Parameters:

  • uri — The URI of online service or local locator.

Implementation

factory LocatorTask.withUri(Uri uri) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LocatorTask_createWithURI(
        coreURI.bytes, errorHandler);
  });
  return LocatorTask._withHandle(handle);
}