isUpperCase property Null safety

bool isUpperCase

true if this is non-null, non-empty and consists of only upper case letters: A-Z

Implementation

bool get isUpperCase => this != null && _upperCasePattern.hasMatch(this!);