【发布时间】:2014-01-14 03:35:09
【问题描述】:
我正在使用 Polymer.dart 构建一个 Dart 应用程序。我的聚合物元素中有一张地图,如下所示:
@observable Map theData = toObservable({
'name': '',
'phone': '',
'email': ''
});
...并设置以下方法:
theDataChanged() {
// ...
}
但是,在进行以下操作后,theDataChanged() 函数不会被调用:
theData['name'] = 'test1';
theData.putIfAbsent('new', () => 'test2');
Maps 是否不支持 <property>Changed() 方法?
【问题讨论】:
标签: dart dart-polymer