capitalize method

String capitalize()

Implementation

String capitalize() {
  return isBlank ? '' : '${this[0].toUpperCase()}${substring(1)}';
}