How to Use DartExceptor: A Lighter Way to Handle Errors in Dart 3
If you've worked with Flutter for any meaningful length of time, you've likely written this:
try {
final user = await repo.getUser();
print(user.name);
} catch (e) {
print('Something went wrong:
freecodecamp.org9 min read