addAll method

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

Prohibit method addAll() 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
int addAll(Iterable<Component> c) {
  throw UnsupportedError(
    'Adding elements directly to a ComponentSet is prohibited; use '
    'Component.addAll() instead',
  );
}