SerializedFormat enum

The serialized format of the enum's fields

Inheritance
Annotations

Constructors

SerializedFormat()
const

Values

camel → const SerializedFormat

Converts to a string with the separators denoted by having the next letter capitalized

(e.g. 'hello_world' -> 'helloWorld')

capital → const SerializedFormat

Converts to a lowercased, first letter captialized word, space separated string of every word

(e.g. 'hello world' -> 'Hello World')

constant → const SerializedFormat

Converts to an upper case, underscore separated string

(e.g. 'hello world' -> 'HELLO_WORLD')

dot → const SerializedFormat

Converts to a lower case period separated string

(e.g. 'hello World' -> 'hello.World')

Converts to a captialized word, dash separated string

(e.g. 'hello world' -> 'Hello-World')

kebab → const SerializedFormat

Converts to a lower case, dash separated string

(e.g. 'hello World' -> 'hello-world')

no → const SerializedFormat

Converts the string without any casing (lower case, space separated)

(e.g. 'Hello-World' -> 'hello world')

none → const SerializedFormat

does not format the value (e.g. fieldName remains fieldName).

pascal → const SerializedFormat

Converts to a string denoted in the same fashion as camel but with the first letter capitalized

(e.g. 'hello_world' -> 'HelloWorld')

path → const SerializedFormat

Converts to a lower case, slash separated string

(e.g. 'hello World' -> 'hello/world')

sentence → const SerializedFormat

Converts to a lower case, space separated string with the first letter capitalized

(e.g. 'hello World' -> 'Hello world')

snake → const SerializedFormat

Converts to a lower case, underscore separated string

(e.g. 'hello World' -> 'hello_world')

swap → const SerializedFormat

Converts to a string with every character case reversed

(e.g. 'Hello World' -> 'hELLO wORLD')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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<SerializedFormat>
A constant List of the values in this enum, in order of their declaration.