tt_CAPWORDS function
dynamic
tt_CAPWORDS(
- dynamic value
tt_CAPWORDS(str): capitalizes the first letter of each word
Implementation
dynamic tt_CAPWORDS(dynamic value) {
final s = varToStr(value);
return s.split(" ").map((w) => w.isEmpty ? '' : w[0].toUpperCase() + w.substring(1).toLowerCase()).join(" ");
}