findCompSiblings<C extends Comp<T>> method

Iterable<C> findCompSiblings<C extends Comp<T>>()
inherited

Returns sibling components at the same level as this one.

Implementation

Iterable<C> findCompSiblings<C extends Comp<T>>() {
  if (parent == null) return [];
  if (parent case IsAnyComponentManagable<T> parent) {
    return parent.getAll<C>().where((c) => c != self);
  }
  return [];
}