setSelection

open fun setSelection(@Nullable selection: Long)

Sets the current selection to selection.

Throws

If selection creates an invalid state.