camelCaseToPascalCase method
Converts camelCase → PascalCase.
Implementation
String camelCaseToPascalCase() {
return replaceAllMapped(
RegExp(r'([a-z0-9])([A-Z])'),
(match) => '${match[1]}_${match[2]}',
).toPascalCase();
}
Converts camelCase → PascalCase.
String camelCaseToPascalCase() {
return replaceAllMapped(
RegExp(r'([a-z0-9])([A-Z])'),
(match) => '${match[1]}_${match[2]}',
).toPascalCase();
}