toWords property

List<String> get toWords

Splits the string into a list of words based on camel case, underscores, hyphens, and spaces.

Implementation

List<String> get toWords =>
    split(RegExp(r'(?<=[a-z])(?=[A-Z])|[_\-\s]+|(?<=[A-Z])(?=[A-Z][a-z])'));