capitalize method
Returns a new version of this EasyText element with the first letter capitalized.
Implementation
EasyText capitalize() => !hasText
? copyWith()
: copyWith(
text: Characters('${str()[0].toUpperCase()}${str().substring(1)}'));