withIndex

public final Unit withIndex(Integer index, Function1<ViewBuilder, Unit> function)

Matches only view at given index, if there are multiple views that matches

Parameters

index

Index of the view to match

function

ViewBuilder that will result in matcher