Skip to content

Instantly share code, notes, and snippets.

@dancojocaru2000
Created February 17, 2022 17:43
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 dancojocaru2000/0c9fc9dfdd6aa2d195f8ff9dd2c7367b to your computer and use it in GitHub Desktop.
Save dancojocaru2000/0c9fc9dfdd6aa2d195f8ff9dd2c7367b to your computer and use it in GitHub Desktop.
Interpolation example
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