pascalCase property
String
get
pascalCase
Returns String
as first letter of all words capitalized
without whitespaces.
final str = "Hello there people";
str.titleCase; // Hello There People
Implementation
String get pascalCase =>
trim().split(" ").map((e) => e.capitalisation).join();