kotlin.text.padStart
padStart
fun CharSequence.padStart( length: Int, padChar: Char = ' ' ): CharSequence
Returns a char sequence with content of this char sequence padded at the beginning 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.