NmNavTree extension

Tree helpers for a list of top-level NmNavDestinations.

on

Methods

find(String? id) → NmNavDestination?

Available on List<NmNavDestination>, provided by the NmNavTree extension

The destination with id anywhere in the tree.
pathTo(String? id) → List<NmNavDestination>

Available on List<NmNavDestination>, provided by the NmNavTree extension

The destinations from the top level down to id (empty when not found).