ItemResourceCache constructor

ItemResourceCache(
  1. {required Uri fileUri}
)

Creates an instance of this object with a path to a directory containing ItemResourceCache.

Parameters:

  • fileUri — path.

Implementation

factory ItemResourceCache({required Uri fileUri}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreFileUri = _CString(fileUri.toFilePath());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ItemResourceCache_createWithPath(
        coreFileUri.bytes, errorHandler);
  });
  return ItemResourceCache._withHandle(handle);
}