ancestorIdsDownstream property

  1. @override
Iterable<I> ancestorIdsDownstream
override

All ancestor IDs starting from root and walking down.

Implementation

@override
Iterable<I> get ancestorIdsDownstream {
  final parent = this.parent;

  if (parent == null) return const [];

  return [
    ...parent.ancestorIdsDownstream,
    parent.id,
  ];
}