capitalize property

String? capitalize

Implementation

String? get capitalize {
  String? result;
  if (isNotEmpty) {
    result = this[0].toUpperCase();
    if (length > 1) {
      result += substring(1).toLowerCase();
    }
  }
  return result;
}