getCached method

OfflineSyncSpace getCached(
  1. UuidValue uuidSpaceId
)

Returns the cached OfflineSyncSpace for the given space ID.

Implementation

OfflineSyncSpace getCached(UuidValue uuidSpaceId) =>
    _instances[uuidSpaceId] ??
    (throw StateError(
      'Space $uuidSpaceId not found in cache. '
      'Ensure OfflineSyncSpaceManager.getOrCreate() is called before getCached().',
    ));