For example, in a clean app add:
@override
void initState() async {
super.initState();
try {
final response = await Dio().get("http://notavalidhostname");
print(response);
} catch (e) {
print(e);
}
}
When you run it, you pause on an exception without focusing any code:
