add method

  1. @override
void add(
  1. T item, {
  2. String? key,
  3. bool notify = true,
})
override

Adds item to the map, extending the length by one.

This method accepts a String as a key or an ItemSerializable, where its id is going to be used.

Implementation

@override
void add(T item, {String? key, bool notify = true}) {
  super.add(item, key: key);
  if (notify) notifyListeners();
}