refresh method
Refreshes the repository from remote datasource.
Implementation
Future<Data> refresh() async {
return retry(
// Run the refresh in a fiber to avoid multiple refreshes at the same time
() => refreshFiber.run(_refresh),
retryIf: shouldRetry,
);
}