Created
August 31, 2020 16:41
-
-
Save Schwusch/e173cdea794de60dd7ea3348d6489477 to your computer and use it in GitHub Desktop.
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
void main() { | |
Foo? foo; | |
foo?.bar ??= 666; | |
print(foo); | |
foo = Foo()..bar = 666; | |
print(foo.bar); | |
} | |
class Foo { | |
int? bar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment