fun withModels(buildModels: EpoxyController.() -> Unit): Unit
The simplest way to add models to the RecyclerView without needing to create an EpoxyController. This is intended for Kotlin usage, and has the EpoxyController as the lambda receiver so models can be added easily.
Multiple calls to this will reuse the same underlying EpoxyController so views in the RecyclerView will be reused.
The Java equivalent is buildModelsWith.