addLiterals method
Example: var regex = FluentRegex().characterSet(CharacterSet().addLiterals('-')); expect(regex.hasMatch('-'), true); expect(regex.hasMatch(''), true); expect(regex.hasMatch('a'), false);
Implementation
CharacterSet addLiterals(String literalsToAdd) {
_sets.add(FluentRegex.escape(literalsToAdd));
return this;
}