reorder method

  1. @internal
void reorder()

Sorts the components according to their prioritys. This method is invoked by the framework when it knows that the priorities of the components in this set has changed.

Implementation

@internal
void reorder() {
  final elements = toList();
  // bypass the wrapper because the components are already added
  super.clear();
  elements.forEach(super.add);
}