isCapitalized property

bool get isCapitalized

Returns true if the first character is upper case.

Implementation

bool get isCapitalized => isNotEmpty && this[0].isUpperCase;