Created
March 17, 2019 07:35
-
-
Save benznest/a7d7bafa10dea6b81ee135af437cf099 to your computer and use it in GitHub Desktop.
null coalescing assignment operator in Dart
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
main(){ | |
String name; | |
name ??= "benznest"; | |
print(name); // "benznest" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment