getCachedState method

Map<String, dynamic>? getCachedState(
  1. String type
)

Gets the cached state for a specific type without triggering a sync.

Use this for immediate access to state that's already been loaded. Returns null if the state hasn't been cached yet.

@param type The state type identifier @return The cached state data, or null if not cached

Implementation

Map<String, dynamic>? getCachedState(String type) {
  return _cachedSharedState[type];
}