toPascalCase method

String toPascalCase()

Converts the string to PascalCase. Example: 'hello world' -> 'HelloWorld'

Implementation

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