capitalizeFirstofEach method
Implementation
String capitalizeFirstofEach() => this
.replaceAll(RegExp(' +'), ' ')
.split(" ")
.map((str) => str.inCaps)
.join(" ");
String capitalizeFirstofEach() => this
.replaceAll(RegExp(' +'), ' ')
.split(" ")
.map((str) => str.inCaps)
.join(" ");