capitalize method

String capitalize()

Implementation

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