string interpolation in sample
This commit is contained in:
@@ -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