_common library

Enums

StringCaseType
Enum for different string case types.

Constants

CAMEL_CASE → const String
A key representing camel case.
CAPITALIZED_KEBAB_CASE → const String
A key representing lower kebab case.
LOWER_DOT_CASE → const String
A key representing lower dot case.
LOWER_KEBAB_CASE → const String
A key representing lower kebab case.
LOWER_SNAKE_CASE → const String
A key representing lower snake case.
PASCAL_CASE → const String
A key representing pascal case.
PATH_CASE → const String
A key representing path case.
UNCHANGED → const String
A key representing an unchanged string. This is used when no conversion is needed.
UPPER_DOT_CASE → const String
A key representing upper dot case.
UPPER_KEBAB_CASE → const String
A key representing upper kebab case.
UPPER_SNAKE_CASE → const String
A key representing upper snake case.

Functions

convertToStringCaseType(String value, StringCaseType? stringCaseType) String
Converts a string to a specific case type.
forceObjToString(Object? obj) String
Converts an object to a string, returning a fallback representation if the object's toString() method throws.