lastWhere method
Get the last child node that matches the criterion in the test
.
An optional orElse
function can be provided to handle the test
is not
able to find any node that matches the provided criterion.
Implementation
IndexedNode lastWhere(bool Function(IndexedNode element) test,
{IndexedNode orElse()?}) {
return children.lastWhere(test, orElse: orElse);
}