isDigit

Returns true if this character is a digit.

expect fun Char.isDigit(): Boolean(source)
fun main() {
    val char: Char = '5'

    if (char.isDigit()) {
        println("$char is a digit.")
    } else {
        println("$char is not a digit.")
    }
}

Source