Last active
April 25, 2022 01:35
-
-
Save felipecastrosales/104555bae7449d3f1a2da79bf8c788c4 to your computer and use it in GitHub Desktop.
Never Type
This file contains hidden or 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
Never relationIsNotDefined() { | |
throw ArgumentError('Relação não definida'); | |
} | |
void main() { | |
String? relation; | |
String? checkRelation() { | |
if (relation != null) { | |
return relation; | |
} else { | |
relationIsNotDefined(); | |
} | |
} | |
checkRelation(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment