-
-
Save luanpotter/6d5074a5a17a8bdfc902c3a6a6b28b98 to your computer and use it in GitHub Desktop.
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
// field: var Animal animal; | |
final animal = animal; // I am just copying a field to a local variable | |
if (animal is Dog) { | |
animal.bark(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment