ChangeCaseType enum
All available string case formats
- Inheritance
- Available extensions
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
- description → String?
-
Available on ChangeCaseType, provided by the ChangeCaseTypeX extension
Returns the description of the enum field.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on ChangeCaseType, provided by the ChangeCaseTypeX extension
Returns the name of the enum field in a human readable format.no setter - name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
T> ({required T camel, required T constant, required T dot, required T kebab, required T lowerFirst, required T no, required T pascal, required T path, required T sentence, required T snake, required T swap, required T title, required T upperFirst, required T capital, required T header, required T sponge}) → T -
Available on ChangeCaseType, provided by the ChangeCaseTypeX extension
Map of all values of the enum -
maybeMap<
T> ({required T orElse, T? camel, T? constant, T? dot, T? kebab, T? lowerFirst, T? no, T? pascal, T? path, T? sentence, T? snake, T? swap, T? title, T? upperFirst, T? capital, T? header, T? sponge}) → T -
Available on ChangeCaseType, provided by the ChangeCaseTypeX extension
Optionally map all values of the enum -
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.