performCheck method
Implementation
Future<AfHelperCheckOutcome> performCheck() async {
final cachedOutcome = await _getCachedOutcome();
if (cachedOutcome != null) {
return cachedOutcome;
}
try {
final outcome = await _performServerCheck();
await _cacheOutcome(outcome);
return outcome;
} catch (e) {
return const AfHelperCheckOutcome(
result: AfHelperCheckResult.error,
);
}
}