【发布时间】:2019-05-18 09:10:58
【问题描述】:
这可能是一个非常简单的问题,但我很难找到答案。 我有一个对象/映射,我不想迭代但访问索引处的特定键/值。
例如:
var _results = {
'Key_1' : 'Value_1',
'Key_2' : 'Value_2',
};
如何访问索引[1] 的 key_2 和 value_2?
我试过_results[index]、_results[index].value、_results[index].key和_results[index].toString(),但都返回null。
【问题讨论】:
标签: dictionary dart flutter