operator []= method
Sets the value of the item to item
at the specified location.
This method accepts a String as a key
or an ItemSerializable, where its id is going to be used.
Implementation
@override
void operator []=(key, T item) {
super[key] = item;
notifyListeners();
}