You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
343 B
Dart
7 lines
343 B
Dart
extension CapExtension on String {
|
|
String get toCamelCase => "${this[0].toUpperCase()}${this.substring(1)}";
|
|
String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}';
|
|
String get allInCaps => this.toUpperCase();
|
|
String get capitalizeFirstofEach => this.length > 0 ? this.split(" ").map((str) => str.inCaps).join(" ") : "";
|
|
}
|