removeAll method

  1. @Deprecated('Do not use, will be fully removed in v1.2.0')
  2. @override
Iterable<Component> removeAll(
  1. Iterable<Component> components
)
override

Prohibit method removeAll() inherited from the QueryableOrderedSet. If this was allowed, then the user would be able to bypass standard lifecycle methods of the Component class.

Implementation

@Deprecated('Do not use, will be fully removed in v1.2.0')
@override
Iterable<Component> removeAll(Iterable<Component> components) {
  throw UnsupportedError(
    'Removing elements directly from a ComponentSet is prohibited; use '
    'Component.removeAll() instead',
  );
}