capitalize method
Implementation
String capitalize() => (trim().isEmpty) ? this : trim()[0].toUpperCase() + trim().toLowerCase().substring(1);
String capitalize() => (trim().isEmpty) ? this : trim()[0].toUpperCase() + trim().toLowerCase().substring(1);