with Binding

inline fun <viewBinding : ViewBinding> withBinding(crossinline onBind: (model?, viewBinding) -> Unit)

method to configure item Binding

Parameters

viewBinding

ViewBinding for item layout

onBind

method to configure the view with the object data

Sources

Link copied to clipboard