Answers for "flutter concatenate strings"

0

flutter string concatenation

var txn = {title: 'Amount Deducted', amount: 150};
var branchCode = 'ABD125';

print("Branch Code $branchCode"); // ABD125
print("$ ${txn.amount}"); // $150
print("Total Amount Deducted: ${txn.amount}"); // Total Amount Deducted: 150
Posted by: Guest on February-28-2021
0

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")
Posted by: Guest on January-09-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language