Retrieves all descendant of a given view model type with an optional filter.

public static ValueTask<IReadOnlyList<INodeViewModel<TModel>>> DescendantsAsync<TModel>(INodeViewModel model, Func<TModel, bool> filter)
Returns:
ValueTask<IReadOnlyList<INodeViewModel<TModel>>>

Parameters

The view model to get the descendants for.

filter Func<TModel, bool>

An optional filter predicate.

Type Parameters

TModel

The view model type of the descendants.

In this article