toPascalCase property

String get toPascalCase

Converts the string to PascalCase (UpperCamelCase). Example: "hello_world" => "HelloWorld"

Implementation

String get toPascalCase =>
    toWords.map((word) => word.capitalizeFirstLowerRest).join();