Skip to content

Commit 719584d

Browse files
committed
Fixed no space b/w capitalizeFirstCharOfWords issue
1 parent 35cc6ea commit 719584d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/es_base_extensions.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ extension ESStringExtn on String {
2323
if (length < 1) return '';
2424

2525
String result = '';
26-
split(' ').forEach((word) => result += word.capitalizeFirstChar);
27-
return result;
26+
split(' ').forEach((word) => result += '${word.capitalizeFirstChar} ');
27+
28+
return result.trim();
2829
}
2930
}
3031

0 commit comments

Comments
 (0)