【发布时间】:2020-03-08 16:36:42
【问题描述】:
这在 JS 中可以正常工作,但 Dart (Flutter) 心脏病发作了。知道为什么吗??
void main() {
var foo = [
{
"some": "thing", // comment this line and it works ??
"test": ["one", "two", "three"]
}
];
// The operator '[]' isn't defined for the class 'Object'
print(foo[0]["test"][0]);
}
【问题讨论】: