add method

  1. @override
bool add(
  1. T t
)
override

Adds the element e to this, and returns wether the element was succesfully added or not.

You can always add elements, even duplicated elemneted are added, so this always return true.

Implementation

@override
bool add(T t) {
  if (super.add(t)) {
    _cache.forEach((key, value) {
      if (value.check(t)) {
        value.data.add(t);
      }
    });
    return true;
  }
  return false;
}