@@ -39,13 +39,15 @@ extension StringCaseConversionsOnStringExtension on String {
39
39
String toUpperDotCase () => this .toDotCase ().toUpperCase ();
40
40
41
41
/// Converts the string to path/case.
42
- String toPathCase ([String separator = '/' ]) => this .extractLowercaseComponents ().join (separator);
42
+ String toPathCase ([String separator = '/' ]) =>
43
+ this .extractLowercaseComponents ().join (separator);
43
44
44
45
/// Converts the string to camelCase.
45
46
String toCamelCase () => this .toPascalCase ().withFirstLetterAsLowerCase ();
46
47
47
48
/// Converts the string to PascalCase.
48
- String toPascalCase () => this .extractLowercaseComponents ().map ((e) => e.capitalize ()).join ();
49
+ String toPascalCase () =>
50
+ this .extractLowercaseComponents ().map ((e) => e.capitalize ()).join ();
49
51
50
52
/// Extracts and returns a list of lowercase components from the string.
51
53
///
@@ -107,10 +109,12 @@ extension StringCaseConversionsOnStringExtension on String {
107
109
bool get isLetter => RegExp (r'^[a-zA-Z]$' ).hasMatch (this );
108
110
109
111
/// Returns `true` if the string is all uppercase.
110
- bool get isUpperCase => this == this .toUpperCase () && this != this .toLowerCase ();
112
+ bool get isUpperCase =>
113
+ this == this .toUpperCase () && this != this .toLowerCase ();
111
114
112
115
/// Returns `true` if the string is all lowercase.
113
- bool get isLowerCase => this == this .toLowerCase () && this != this .toUpperCase ();
116
+ bool get isLowerCase =>
117
+ this == this .toLowerCase () && this != this .toUpperCase ();
114
118
115
119
/// Capitalizes the first letter of the string.
116
120
///
0 commit comments