toPascalCase method

String toPascalCase()

Implementation

String toPascalCase() {
  if (isSnakeCase) {
    return _toPascalCaseFromSnakeCase();
  } else if (isCamelCase) {
    return toUpperFirst();
  } else {
    return this;
  }
}