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