deepest property

RoutingResult<T> deepest

The RoutingResult that matched the most specific sub-path.

Implementation

RoutingResult<T> get deepest {
  var search = this;

  while (search?.nested?.isNotEmpty == true) {
    search = search.nested.first;
  }

  return search;
}