cacheGathererAccessToken method
Implementation
@override
Future<Either<Failure, Success>> cacheGathererAccessToken(
String token) async {
try {
var result = await _sharedPref.setString(localKeyGathererToken, token);
if (result) {
return Right(CacheSuccess());
} else {
return Left(CacheFailure());
}
} catch (e) {
return Left(LocalDatasourceFailure());
}
}