Retrieves the breadth-first descendant of a given
public static async ValueTask<INodeViewModel<TModel>> FirstDescendantAsync<TModel>(IRedaktContext context, string nodeId, Func<TModel, bool> filter, Nullable<CultureInfo> forCulture)
- Returns:
- ValueTask<INodeViewModel<TModel>>
Parameters
context
IRedaktContext
nodeId
string
The node id to get the descendant for.
filter
Func<TModel, bool>
An optional filter predicate.
forCulture
Nullable<CultureInfo>
Type Parameters
TModel
The view model type of the descendant.