getFromCache property
Optional function to provide data from cache at creation.
If available, data will be displayed instantly, while fetching newer data from task.
If a ConnectivityException
happens while fetching, cached data will stay displayed.
Implementation
final ValueGetter<R?>? getFromCache;