get<R> method
Implementation
@override
Future<Response<UserEntity>> get<R>(
String id, {
bool fromCache = false,
R? Function(R parent)? source,
}) async {
try {
if (fromCache) {
return localDataRepository.get(id: id);
} else {
return repository.get(id, source);
}
} catch (_) {
return Future.error("$_");
}
}