Skip to content

Instantly share code, notes, and snippets.

@mondoktamas
Created September 23, 2021 09:11
Show Gist options
  • Save mondoktamas/9b360c42da87d00ae74cf28b40bad5d6 to your computer and use it in GitHub Desktop.
Save mondoktamas/9b360c42da87d00ae74cf28b40bad5d6 to your computer and use it in GitHub Desktop.
void main() {
print('Value: ${returnValue()}');
}
bool? returnValue() {
try {
throw Exception();
return null;
} catch (error, stack) {
return true;
} finally {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment