getModelPosition

open fun getModelPosition(model: EpoxyModel<out Any>): Int

Finds the position of the given model in the list. Doesn't use indexOf to avoid unnecessaryequals() calls since we're looking for the same object instance.

Return

The position of the given model in the current models list, or -1 if the model can't befound.