Created
March 17, 2019 07:25
-
-
Save benznest/4073ad0f3e958c0472ce22129e2c8974 to your computer and use it in GitHub Desktop.
String concatenate in Dart
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
class Person{ | |
String name; | |
} | |
main(){ | |
Person person = Person(); | |
person.name = "benznest"; | |
int money = 100; | |
print("${person.name} , $money"); // benznest , 100 | |
print(person.name + " , " + money.toString()); // benznest , 100 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment