Skip to content

Instantly share code, notes, and snippets.

void main() {
final test = Future.value('hey');
test.then((x) {
print('then 1. $x');
throw 'test';
}).catchError((e) {
print('catch 1. $e');
return 'fda';
}).then((x) {