toPascalCase method

String toPascalCase()

Converts the string to PascalCase.

Implementation

String toPascalCase() =>
    this.extractLowercaseComponents().map((e) => e.capitalize()).join();