trying method
Implementation
Future trying(AsyncCallback fn) async {
try {
await fn();
} catch (e, stack) {
log.severe("Error in widget: $e", e, stack);
setState(() {
pageError = e;
});
}
}
Future trying(AsyncCallback fn) async {
try {
await fn();
} catch (e, stack) {
log.severe("Error in widget: $e", e, stack);
setState(() {
pageError = e;
});
}
}