addWhiteSpaces method
See SpecialCharacter.whiteSpace Example: var regex = FluentRegex().characterSet(CharacterSet().addWhiteSpaces()); expect(regex.hasMatch(' '), true); expect(regex.hasMatch('\u0009'), true); expect(regex.hasMatch('\n'), true); expect(regex.hasMatch('\x0B'), true); expect(regex.hasMatch('\f'), true); expect(regex.hasMatch('\r'), true); expect(regex.hasMatch('h'), false);
Implementation
CharacterSet addWhiteSpaces() {
_sets.add(SpecialCharacter.whiteSpace);
return this;
}