Skip to content

Instantly share code, notes, and snippets.

@Hexer10
Created May 11, 2020 18:09
Show Gist options
  • Save Hexer10/87a6f38616f74321c85f2f91a5450d4e to your computer and use it in GitHub Desktop.
Save Hexer10/87a6f38616f74321c85f2f91a5450d4e to your computer and use it in GitHub Desktop.
try {
await someFuture();
} catch (e) {
print("called when there is an error catches error: $e");
try {
print("called with value = null");
} finally {
print("called when future completes");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment