removeAll method
Removes all component references that match the specified locator.
locator
the locator to remove references by. Returns a list, containing all removed references.
Implementation
@override
List removeAll(locator) {
var components = [];
if (locator == null) return components;
for (var index = _references.length - 1; index >= 0; index--) {
var reference = _references[index];
if (reference.match(locator)) {
_references.removeAt(index);
components.add(reference.getComponent());
}
}
return components;
}