toPascalCase static method

String toPascalCase(
  1. String text
)

Implementation

static String toPascalCase(String text) {
  final camel = toCamelCase(text);

  if (camel.isEmpty) return '';

  return camel.substring(0, 1).toUpperCase() + camel.substring(1);
}