Created
February 17, 2022 17:43
-
-
Save dancojocaru2000/0c9fc9dfdd6aa2d195f8ff9dd2c7367b to your computer and use it in GitHub Desktop.
Interpolation example
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 = Test(); | |
print("Look, it's " + a.x.toString()); | |
print("Look, it's $a.x"); | |
print("Look, it's ${a.x}"); | |
} | |
class Test { | |
final int x = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment