We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if (foo?.bar == somethingNotNull)
foo
Another surprise (to me):
void main() { String? foo = 'Foo'; if (foo?.toUpperCase() == 'FOO') { // Error: foo might be null. print(foo.toUpperCase(); } }