lastParentOrNull

fun lastParentOrNull(predicate: (Context) -> Boolean): Context?

Return

the last context (upwards, towards the root, starting from this context) that matches the predicate, or null if no parent in the scope tree matches the given condition

Parameters

predicate

condition to match