Created
April 26, 2022 18:42
-
-
Save AbdullohBahromjonov/eeab1914f02bfe209a32241c88b50e0a to your computer and use it in GitHub Desktop.
Dart optionals
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
String? nullString = 'Abdulloh'; | |
void main() { | |
nullString = null; | |
print (isNullString(nullString)); | |
} | |
bool isNullString(String? someNullablesString) { | |
if (someNullablesString == null) { | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment