isPascalCase property

bool get isPascalCase

Implementation

bool get isPascalCase =>
    !(isEmpty ||
        contains(RegExp('[^a-zA-Z0-9]+')) ||
        startsWith(RegExp('[0-9]+'))) &&
    this[0].toUpperCase() == this[0];