Skip to content

Instantly share code, notes, and snippets.

@evaisse
Created September 13, 2024 14:17
Show Gist options
  • Save evaisse/63196261249c43f352338c2084417be8 to your computer and use it in GitHub Desktop.
Save evaisse/63196261249c43f352338c2084417be8 to your computer and use it in GitHub Desktop.
The problem with `dynamic` in dart
void main() {
dynamic myDynamicValue = null;
myDynamicValue.length;
Object? myTypedValue = myDynamicValue;
myTypedValue.length; // that's helpful
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment