string interpolation in sample
This commit is contained in:
1 parent
0200054ddd
commit
8070224d9d
1 file changed
+1
-1
@@ -23,7 +23,7 @@ class UserView {
|
|||||||
user = value;
|
user = value;
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
// BindExt.exprTo auto dispatch first time
|
// BindExt.exprTo auto dispatch first time
|
||||||
unbindOldUser = BindExt.exprTo("Hello " + user.name + ". You have " + user.coins + " coins", this.textField.text);
|
unbindOldUser = BindExt.exprTo('Hello ${user.name}. You have ' + user.coins + " coins", this.textField.text);
|
||||||
|
|
||||||
Bind.bind(user.health, onHealthChange);
|
Bind.bind(user.health, onHealthChange);
|
||||||
// manual dispatch
|
// manual dispatch
|
||||||
|
|||||||
Reference in new issue
Block a user