capitalize property

String get capitalize

Returns the string with the first letter capitalized.

Implementation

String get capitalize => isNullOrEmpty ? "" : '${this![0].toUpperCase()}${this!.substring(1)}';