io.sureshg.extn / kotlin.String / center

center

fun String.center(size: Int, padChar: Char = ' '): String

Centers the String in a larger String of size size. Uses padChar as the value to pad the String.