isNonWordCharacterAtIndex method

bool isNonWordCharacterAtIndex(
  1. int index
)

Returns true if the character at index is a non-word character.

Non-word characters are whitespace characters, punctuation characters (except apostrophe characters), and the single-quote-left character, and all double quote characters.

Implementation

bool isNonWordCharacterAtIndex(int index) =>
    isNonWordCharacter(codeUnitAt(index));