UnicodeClass class

A single Unicode named block paired with its inclusive code-point range.

start and end are both inclusive: a rune r belongs to this block when start <= r && r <= end. Ranges never overlap and are stored sorted in the internal registry, which lets findUnicodeClassType stop at the first match.

Example:

const block = UnicodeClass(UnicodeClassType.BasicLatin, start: 0x0000, end: 0x007F);
block.start <= 0x41 && 0x41 <= block.end; // true — 'A' is BasicLatin

Constructors

UnicodeClass(UnicodeClassType type, {required int start, required int end})
Creates a block descriptor for type spanning start..end inclusive. Audited: 2026-06-12 11:26 EDT
const

Properties

end int
Last code point of the block (inclusive).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
First code point of the block (inclusive).
final
type UnicodeClassType
The named block this range describes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited