getEnsured method
Gets the value and ensures it's loaded from storage.
Returns: A Future that completes with the current value
Implementation
Future<T> getEnsured() async {
if (!hasInitialized) await _load();
return super.get();
}
Gets the value and ensures it's loaded from storage.
Returns: A Future that completes with the current value
Future<T> getEnsured() async {
if (!hasInitialized) await _load();
return super.get();
}