kotlin.text.padEnd

padEnd

fun CharSequence.padEnd(
    length: Int, 
    padChar: Char = ' '
): CharSequence

Returns a char sequence with content of this char sequence padded at the end to the specified length with the specified character or space.

Parameters

length - the desired string length.

padChar - the character to pad string with, if it has length less than the length specified. Space is used by default.

Return