camelCaseToPascalCase method

String camelCaseToPascalCase()

Converts camelCasePascalCase.

Implementation

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