StringCase extension Null safety

on

Properties

toCamelCase String
Converts string to camel case. Example: "hello_world" -> "helloWorld"
read-only
toCapitalize String
Converts the first character of string to upper case and the remaining to lower case. Example: "helloWorld" -> "HelloWorld"
read-only
toKebabCase String
Converts string to kebab case. Example: "helloWorld" -> "hello-world"
read-only
toLowerFirst String
Converts the first character of string to upper case and the remaining to lower case Example: "helloWorld" -> "HelloWorld"
read-only
toSnakeCase String
Converts string to snake case. Example: "helloWorld" -> "hello_world"
read-only
toStartCase String
Converts string to start case. Example: "helloWorld" -> "HelloWorld"
read-only
toUpperFirst String
Converts string to upper case. Example: "helloWorld" -> "HELLO_WORLD"
read-only

Methods

startsWith(String target, [dynamic position = 0]) bool
Checks if string starts with the given target string. Example: "helloWorld" -> "hello" -> true