invoke

public final Unit invoke(Function1<KViewPager2, Unit> function)

Operator that allows usage of DSL style

Parameters

function

Tail lambda with receiver which is your view