Retrieves all descendant of a given
public static ValueTask<IReadOnlyList<INodeViewModel<TModel>>> DescendantsAsync<TModel>(INodeViewModel model, Func<TModel, bool> filter)
- Returns:
- ValueTask<IReadOnlyList<INodeViewModel<TModel>>>
Parameters
model
INodeViewModel
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.