VectorTileCache constructor

VectorTileCache(
  1. {required Uri fileUri}
)

Create a vector tile cache with the given path.

Parameters:

  • fileUri — path.

Implementation

factory VectorTileCache({required Uri fileUri}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreFileUri = _CString(fileUri.toFilePath());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_VectorTileCache_createWithPath(
        coreFileUri.bytes, errorHandler);
  });
  return VectorTileCache._instanceCache.instanceWith(handle);
}