operator [] method
dynamic
operator [](
- dynamic indexKey
Implementation
operator [](indexKey) {
if (result.containsKey(indexKey)) {
return result[indexKey];
}
final subIndex = int.tryParse(indexKey.toString());
if (subIndex == null) return null;
if (subIndex < 0) {
throw ArgumentError("Invalid index key $indexKey");
}
return nestedResult(subIndex);
}