v4.1.0
recase
Changes the case of the input text to the desire case convention.
370Likes 2.7M30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
techniboogie-dart/recase open-source repository details.
English project snapshot. Visit GitHub for the latest content.
Changes the case of the input text to the desire case convention.
import 'package:recase/recase.dart';
void main() {
ReCase rc = new ReCase('Just_someSample-text');
print(rc.camelCase); // Prints 'justSomeSampleText'
print(rc.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
String extensions are also available.
import 'package:recase/recase.dart';
void main() {
String sample = 'Just_someSample-text';
print(sample.camelCase); // Prints 'justSomeSampleText'
print(sample.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
This feature is available in version 3.0.0, and requires at least Dart 2.6
Supports:
Dependency list 1 items
^1.16.8Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗