Function

delete

Delete the text between start (inclusive) and end (exclusive).

delete

Source set: Common
public fun TextFieldBuffer.delete(start: Int, end: Int)

Delete the text between start (inclusive) and end (exclusive). Pass 0 as start and TextFieldBuffer.length as end to delete everything in this buffer.

Parameters

start The character offset of the first character to delete.
end The character offset of the first character after the deleted range.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: