Modifier class abstract
Text modifiers represented as a bitmask for performance.
Constructors
- Modifier()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
getUnderlineStyle(
int mask) → UnderlineStyle -
Extracts the active UnderlineStyle from
mask. -
has(
int mask, int modifier) → bool -
Returns true if
modifieris active inmask. -
mergeLayered(
int upper, int lower) → int -
Merges
lowermodifiers intoupper, preservingupper's UnderlineStyle whenupperhas underline set instead of bitwise-ORing the 3-bit enum field. -
withUnderlineStyle(
int mask, UnderlineStyle style) → int -
Encodes
styleintomask, setting or clearing underline accordingly.
Constants
- blink → const int
- Blinking text modifier (SGR 5).
- bold → const int
- Bold text modifier (SGR 1).
- crossedOut → const int
- Crossed-out or strikethrough text modifier (SGR 9).
- dim → const int
- Dim or faint text modifier (SGR 2).
- Hidden text modifier (SGR 8).
- italic → const int
- Italic text modifier (SGR 3).
- kittyPlaceholder → const int
-
Kitty Graphics Unicode placeholder cell (
U+10EEEE,fgholds 24-bitimageId). - none → const int
- No modifiers applied.
- overline → const int
- Overlined text modifier (SGR 53).
- reverse → const int
- Reversed foreground and background modifier (SGR 7).
- transparent → const int
- Transparency modifier for layer compositing.
- underline → const int
- Underlined text modifier (SGR 4).
- underlineCurly → const int
-
Curly / wavy undercurl modifier (
SGR 4:3). - underlineDashed → const int
-
Dashed underline modifier (
SGR 4:5). - underlineDotted → const int
-
Dotted underline modifier (
SGR 4:4). - underlineDouble → const int
-
Double underline modifier (
SGR 21/4:2). - underlineSingle → const int
-
Single underline modifier (
SGR 4/4:1). - underlineStyleMask → const int
-
Bitmask covering the 3-bit UnderlineStyle field (
bits 10..12). - underlineStyleShift → const int
- Bit shift for packing UnderlineStyle into a modifier mask.