ComponentSet constructor

ComponentSet({
  1. int comparator(
    1. Component e1,
    2. Component e2
    )?,
  2. bool? strictMode,
})

With default settings, creates a ComponentSet with the compare function that uses the Component's priority for sorting.

Implementation

ComponentSet({
  int Function(Component e1, Component e2)? comparator,
  bool? strictMode,
}) : super(
        comparator: comparator ?? Comparing.on<Component>((c) => c.priority),
        strictMode: strictMode ?? defaultStrictMode,
      );