toCaptalize method

String toCaptalize()

Implementation

String toCaptalize() {
  if (isEmpty) return this;
  return '${this[0].toUpperCase()}${substring(1, length)}';
}