Skip to content

Instantly share code, notes, and snippets.

View mennanov's full-sized avatar

Renat mennanov

View GitHub Profile
import 'dart:async';
void main() async {
print('start');
try {
doSomething().then((e) {
print('e: $e');
}).catchError((e) {
print('catchError: $e');
});
import 'dart:async';
void main() async {
print('start');
try {
doSomething().then((e) {
print('e: $e');
});
} catch (e) {
print('caught exception: $e');