pasteSlices

private fun pasteSlices(splits: Int, currentTextSlices: ArrayList<MutableState<String>>, slice: String)

Method used to automatically all the SplitBox when the user copy the text to insert in the SplitText

Parameters

splits

The number of splits used to create the SplitText component

currentTextSlices

The array container of the parts of the split text

slice

The complete text requested to copy in the component