📜  在颤振中连接 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:09.833000             🧑  作者: Mango

代码示例1
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")