capitalized property

String get capitalized

Implementation

String get capitalized =>
    isEmpty ? this : this[0].toUpperCase() + substring(1);