setSelection

abstract fun setSelection(@NonNull selection: S)

Sets the current selection to selection.

Throws

If selection creates an invalid state.