VOOZH about

URL: https://www.geeksforgeeks.org/dart/how-to-append-or-concatenate-strings-in-dart/

⇱ How to Append or Concatenate Strings in Dart? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Append or Concatenate Strings in Dart?

Last Updated : 7 Apr, 2025

In Dart, the concatenation of strings can be done in four different ways:

  • Using the '+' operator.
  • Using string interpolation.
  • By directly writing string literals.
  • Using the .join() method on a list of strings.

1. Using the ' + ' Operator

In Dart, we can use the '+' operator to concatenate the strings.

Example:

Output:

GeeksForGeeks


2. By String Interpolation

In Dart, we can use string interpolation to concatenate the strings.

Example:

Output:

GeeksForGeeks
Geeks For Geeks


3. By Directly Writing String Literals

In Dart, we concatenate the strings by directly writing string literals and appending.

Example:

Output:

GeeksForGeeks
Geeks For Geeks


4. By List_name.join() Method

In Dart, we can also convert the elements of the list into one string.

list_name.join("input_string(s)");

This input_string(s) is inserted between each element of the list in the output string.

Example:

Output:

GeeksForGeeks
Geeks For Geeks
Comment
Article Tags:
Article Tags:

Explore