Skip to content

Commit

Permalink
refactor(pag): avoid max line-length warn
Browse files Browse the repository at this point in the history
`pag` is the scope that stands for `package_assets_generator`
  • Loading branch information
mrverdant13 committed Aug 7, 2023
1 parent 015cd86 commit 943070f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ extension on String {
}

String upperCaseFirstLetter(String word) {
return '${word.substring(0, 1).toUpperCase()}${word.substring(1).toLowerCase()}';
final firstLetter = word[0];
final rest = word.substring(1);
return '${firstLetter.toUpperCase()}${rest.toLowerCase()}';
}

String get asCamelCase {
Expand Down

0 comments on commit 943070f

Please sign in to comment.