get Model Position
open fun getModelPosition(@NonNull() targetModel: EpoxyModel<out Any>): Int
Content copied to clipboard
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.