contains method
Returns whether the character set contains the given code point or not.
Implementation
bool contains(int codePoint) {
for (final range in _ranges) {
if (range.start <= codePoint && codePoint <= range.end) {
return true;
}
}
return false;
}