ChangeCaseType enum
All available string case formats
Constructors
- ChangeCaseType()
-
const
Values
- camel → const ChangeCaseType
-
Converts to a string with the separators denoted by having the next letter capitalized
example:
'hello_world' -> 'helloWorld'
- constant → const ChangeCaseType
-
Converts to an upper case, underscore separated string
example:
'hello world' -> 'HELLO_WORLD'
- dot → const ChangeCaseType
-
Converts to a lower case period separated string
example:
'hello World' -> 'hello.world'
- kebab → const ChangeCaseType
-
Converts to a lower case, dash separated string
example:
'hello World' -> 'hello-world'
- lowerFirst → const ChangeCaseType
-
Converts to a string with the first character lower cased
example:
'Hello World' -> 'hello World'
- no → const ChangeCaseType
-
Converts the string without any casing (lower case, space separated)
example:
'Hello-World' -> 'hello world'
- pascal → const ChangeCaseType
-
Converts to a string denoted in the same fashion as camel but with the first letter capitalized
example:
'hello_world' -> 'HelloWorld'
- path → const ChangeCaseType
-
Converts to a lower case, slash separated string
example:
'hello World' -> 'hello/world'
- sentence → const ChangeCaseType
-
Converts to a lower case, space separated string with the first letter capitalized
example:
'hello World' -> 'Hello world'
- snake → const ChangeCaseType
-
Converts to a lower case, underscore separated string
example:
'hello World' -> 'hello_world'
- swap → const ChangeCaseType
-
Converts to a string with every character case reversed
example:
'Hello World' -> 'hELLO wORLD'
- title → const ChangeCaseType
-
Converts to a space separated string with the
first character of every word uppercased except
- small words
- urls
- words that contain capital letters
example:
'hello world' -> 'Hello World'
- upperFirst → const ChangeCaseType
-
Converts to a string with the first character upper cased
example:
'hello world' -> 'Hello world'
- capital → const ChangeCaseType
-
Converts to a lowercased, first letter captialized word, space separated string of every word
example:
'hello world' -> 'Hello World'
- header → const ChangeCaseType
-
Converts to a captialized word, dash separated string
example:
'hello world' -> 'Hello-World'
- sponge → const ChangeCaseType
-
Converts to a string with every character randomly lowercased/capitalized
example:
'hello world' -> 'hElLo wOrLd'
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ChangeCaseType> - A constant List of the values in this enum, in order of their declaration.