Skip to content

Instantly share code, notes, and snippets.

@tomaszpolanski
Last active November 7, 2021 11:31
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 tomaszpolanski/e66fa5e280d4b1fa079acadf0267d3c2 to your computer and use it in GitHub Desktop.
Save tomaszpolanski/e66fa5e280d4b1fa079acadf0267d3c2 to your computer and use it in GitHub Desktop.
Error when accessing
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