StringCaseFormatter class

Provides ways to convert between different string casing.

Constructors

StringCaseFormatter()

Properties

hashCode int
The hash code for this object.
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

Static Methods

camelCase(String text, {String separator = ''}) String
Returns a camel cased version of the input String.
className(String text) String
Returns pascalCase for classNames.
constantCase(String text, {String separator = ''}) String
Returns a constant cased version of the input String.
groupIntoWords(String text) List<String>
Groups a String into words based upon the defined regexps.
lowerCaseFirstLetter(String text, {bool upperCaseRest = true}) String
Returns a String with first letter lower cased.
pascalCase(String text, {String separator = ''}) String
Returns a pascal cased version of the input String.
snakeCase(String text, {String separator = '_'}) String
Returns a snake cased version of the input String.
upperCaseFirstLetter(String text, {bool lowerCaseRest = true}) String
Returns a String with first letter upper cased.