WithChildren

interface WithChildren<out T>

Properties

Link copied to clipboard
abstract val children: List<T>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
inline fun <T> WithChildren<*>.childrenOfType(): List<T>
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfType(): T
inline fun <T> WithChildren<*>.firstChildOfType(predicate: (T) -> Boolean): T
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfTypeOrNull(): T?
inline fun <T> WithChildren<*>.firstChildOfTypeOrNull(predicate: (T) -> Boolean): T?
Link copied to clipboard
inline fun <T : WithChildren<*>> WithChildren<WithChildren<*>>.firstMemberOfType(): T
inline fun <T : WithChildren<*>> WithChildren<WithChildren<*>>.firstMemberOfType(predicate: (T) -> Boolean): T
Link copied to clipboard
inline fun <T : WithChildren<*>> WithChildren<WithChildren<*>>.firstMemberOfTypeOrNull(): T?
Link copied to clipboard
@JvmName(name = "withDescendantsProjection")
fun WithChildren<*>.withDescendants(): Sequence<Any?>
@JvmName(name = "withDescendantsAny")
fun WithChildren<Any>.withDescendants(): Sequence<Any>