parseOrNull

abstract fun parseOrNull(input: CharSequence): T?(source)

Parses the given input string as T using this format.

Return

the parsed value, or null if the input string is not in the expected format or the value is invalid.