0 purchases
string case converter
A lightweight extension library for transforming string cases
Install #
Add the dependency to your pubspec.yaml:
dependencies:
string_case_converter: 1.0.0
copied to clipboard
Run pub get to install.
Getting Started #
The package handles converting words to:
Camel Case
print('hello there'.toCamelCase()); // helloThere
copied to clipboard
Pascal Case
print('hello there'.toPascalCase()); // HelloThere
copied to clipboard
Kebab Case
print('hello there'.toKebabCase()); // hello-there
copied to clipboard
Snake Case
print('hello!@£(^)^%*&%^%^% there'.toSnakeCase()); // hello_there
copied to clipboard
Constant Case
print('hello there'.toConstantCase()); // HELLO_THERE
copied to clipboard
Changelog #
For a detailed changelog, see the CHANGELOG.md file
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.