Created
March 14, 2024 08:16
-
-
Save dicenull/6a8981a12d678632f14c8e0a08d2c612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final astronauts = 0; | |
try { | |
if (astronauts == 0) { | |
throw StateError('No astronauts.'); | |
} | |
} catch (e) { | |
print(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment