wordCount property

int get wordCount

Convenience getter for total word count.

Implementation

int get wordCount =>
    fullText.trim().split(RegExp(r'\s+')).where((w) => w.isNotEmpty).length;