Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

concatenate in flutter

In dart there are many string options.

For concatenation, you can do :

    'hello $myVariable'
    "hello ${myVariable.myProperty}"
    'hello ' 'world' (only works with string literals)
    'hello' + myVariable

So in your case, you can do a print(" $str1 $str2")
 
PREVIOUS NEXT
Tagged: #concatenate #flutter
ADD COMMENT
Topic
Name
6+1 =