add method

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

Adds the element e to this, and returns whether the element was added or not. If the element already exists in the collection, it isn't added.

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;
}