currentValueOrResolve method
Get the current data of the repository if it's already resolved, otherwise resolve it. This method will not refresh the repository if it's already resolved.
Implementation
Future<Data> currentValueOrResolve() async {
return currentValue ?? await refresh();
}