setPosition

open fun setPosition(position: Double): Switch

Set a custom position that is clipped between the closed and open bounds.

Parameters

position

the position to set to, clipped between open and close