自上次飞镖更新(2.2)以来,我收到了这个错误,
'动态'类型的值不能分配给'字符串'类型的变量。
这对我来说没有多大意义。代码绝对是微不足道的:
class EmployeeMirror {
EmployeeMirror(this.id, this.name);
EmployeeMirror.fromMap(Map<String, dynamic> _map) {
id = _map['id']; // error here
name = _map['name']; // and here
}
int id;
String name;
}
我认为这无关紧要,但这是在 Aqueduct 项目中。
在此先感谢您的帮助