dart_casing 1.0.0+1 copy "dart_casing: ^1.0.0+1" to clipboard
dart_casing: ^1.0.0+1 copied to clipboard

outdated

Dart library for changing String case style to the desired convention.

example/dart_casing_example.dart

import 'package:dart_casing/dart_casing.dart';

main()
{
  var text = "Lorem-ipsum_dolor\\SIT amet";

  print(Casing.camelCase(text));                  // loremIpsumDolorSitAmet
  print(Casing.pascalCase(text));                 // LoremIpsumDolorSitAmet
  print(Casing.titleCase(text));                  // Lorem Ipsum Dolor Sit Amet
  print(Casing.titleCase(text, separator: "_"));  // Lorem_Ipsum_Dolor_Sit_Amet
  print(Casing.snakeCase(text));                  // lorem_ipsum_dolor_sit_amet
  print(Casing.paramCase(text));                  // lorem-ipsum-dolor-sit-amet
  print(Casing.constantCase(text));               // LOREM_IPSUM_DOLOR_SIT_AMET
  print(Casing.lowerCase(text, separator: " "));  // lorem ipsum dolor sit amet
  print(Casing.upperCase(text, separator: " "));  // LOREM IPSUM DOLOR SIT AMET
}
8
likes
0
pub points
90%
popularity

Publisher

verified publisherjesway.com

Dart library for changing String case style to the desired convention.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_casing