operator []= method
Implementation
void operator []=(String key, List<double> data) {
final index = slot.indexOf(key);
// Ensure that we are only setting new data if the hash has changed.
final hash = Object.hashAll(data);
if (_storage[index]?.hash == hash) {
return;
}
// Store the storage at the given slot index.
_storage[index] = (data: data, hash: hash);
// Clear the cache.
super.resource = null;
}