charCount property

int charCount

Count of comment characters, not including any code samples in the comment, after collapsing each run of whitespace to a single space.

Implementation

int get charCount =>
    commentStringWithoutCode.replaceAll(RegExp(r'\s+'), ' ').length;