capitalCase property

String get capitalCase

Uppercase the first character and remain the rest.

Implementation

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