CaseStyle class Configuration

Used to transform fields to a specific case style.

Constructors

CaseStyle({TextTransform? head, TextTransform? tail, String separator = ''})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
Transforms the first word of a field name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator String
The separator used between each word of a field name Can be an empty String
final
tail TextTransform?
Transforms all words but the first - or all words if head is null - of a field name
final

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

Static Methods

fromString(String? value) CaseStyle?
Transforms a String to a CaseStyle

Constants

camelCase → const CaseStyle
Transforms to 'fieldName'
lowerCase → const CaseStyle
Transforms to 'fieldname'
none → const String
No CaseStyle will be applied
paramCase → const CaseStyle
Transforms to 'field-name'
pascalCase → const CaseStyle
Transforms to 'FieldName'
snakeCase → const CaseStyle
Transforms to 'field_name'
unmodified → const String
Alias of CaseStyle.none
upperCase → const CaseStyle
Transforms to 'FIELDNAME'
upperSnakeCase → const CaseStyle
Transforms to 'FIELD_NAME'