gets<R> method

  1. @override
Future<Response<UserEntity>> gets<R>({
  1. bool fromCache = false,
  2. R? source(
    1. R parent
    )?,
})
override

Implementation

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