Last active
November 7, 2021 11:31
-
-
Save tomaszpolanski/e66fa5e280d4b1fa079acadf0267d3c2 to your computer and use it in GitHub Desktop.
Error when accessing
This file contains 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() { | |
final A example = B(); | |
if (example.text != null) { | |
print(example.text!.length); // Throws null reference exception | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment