Skip to content

Instantly share code, notes, and snippets.

@daiki1003
Last active March 31, 2021 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiki1003/b979ef155deb26b611cf6d9ac688f2b5 to your computer and use it in GitHub Desktop.
Save daiki1003/b979ef155deb26b611cf6d9ac688f2b5 to your computer and use it in GitHub Desktop.
bool nullableBoolean() {
return null;
}
void main() {
final nullable = nullableBoolean();
if (nullable == false) {
print('aa');
} else {
print('bb');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment