library / org.akop.kotx.ext.view / android.view.ViewGroup / firstChildOrNull

firstChildOrNull

inline fun <reified T : View> ViewGroup.firstChildOrNull(): T?

Returns first child as type T if available, null if the ViewGroup has no children, or if the child isn't of the expected type.