isolated property
PrfIso<T>
get
isolated
Creates an isolate-safe version of this preference.
Returns a PrfIso instance that shares the same key, adapter, and default value as this preference, but without caching. This is useful when you need to access the preference from a different isolate.
Example:
final isolatedPref = Prf<String>('username').isolated; // Safe to use across isolates
Implementation
PrfIso<T> get isolated => PrfIso.customAdapter<T>(key,
adapter: adapter, defaultValue: defaultValue);