singleLoadLogic method
Implementation
Future<IndicatorResult> singleLoadLogic(FutureCallback handle) async {
try {
await handle();
isLoading.value = false;
error.value = false;
return IndicatorResult.success;
} catch (e) {
logger.e(e);
myToast('Data error');
isLoading.value = false;
error.value = true;
return IndicatorResult.fail;
}
}