Dart String: Concatenation and Multiline Strings

Jinali GhoghariJinali Ghoghari
1 min read

Dart String : Concatenation

  • In Dart language we can do Concatenation of string by simple putting + between to string.
void main()
{
print("Jinali" + " Ghoghari");
}

Dart String : Multiline line of Strings

  • For writing Multiline line of Strings we can use ''' ''' . for this we can write multiline in dart. Here is the example of How to write Multiline line of Strings in dart.
void main()
{
print(''' Jinali : Hello , How are you ? AI
          AI : I am fine Jinali, Tell me About you.
          Jinali : I am good and nowadays, I am learnig dart
          AI : That's Good!! , if you need help , you can ask me.
          Jinali : Thank you AI ''');
}
0
Subscribe to my newsletter

Read articles from Jinali Ghoghari directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jinali Ghoghari
Jinali Ghoghari