Skip to content

Instantly share code, notes, and snippets.

@benznest
Created March 17, 2019 07:25
Show Gist options
  • Save benznest/4073ad0f3e958c0472ce22129e2c8974 to your computer and use it in GitHub Desktop.
Save benznest/4073ad0f3e958c0472ce22129e2c8974 to your computer and use it in GitHub Desktop.
String concatenate in Dart
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