createDefault static method

ComponentSet createDefault(
  1. Component parent, {
  2. bool strictMode = true,
})

Creates a ComponentSet with a default value for the compare function, using the Component's priority for sorting.

You must provide the parent so that it can be handed to the children that will be added.

Implementation

static ComponentSet createDefault(
  Component parent, {
  bool strictMode = true,
}) {
  return ComponentSet(
    Comparing.on<Component>((c) => c.priority),
    parent,
    strictMode: strictMode,
  );
}