toSentenceCase property

String get toSentenceCase

Capitalizes only the first character.

Implementation

String get toSentenceCase {
  if (isEmpty) return this;
  return this[0].toUpperCase() + substring(1);
}