TerminalHighlight class
A coloured range of a terminal, made by TerminalController.highlight;
dispose removes it.
Constructors
- TerminalHighlight(TerminalController owner, {required CellAnchor p1, required CellAnchor p2, required Color color})
-
A highlight of
ownerfromp1top2; use TerminalController.highlight, which also shows it.
Properties
- color → Color
-
The colour painted over the range (its alpha is kept).
final
- disposed → bool
-
Whether
disposewas called.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- onDisposed → Event
-
Fires after
disposehas disposed everything registered.no setterinherited - owner → TerminalController
-
The controller that made this highlight.
final
- p1 → CellAnchor
-
The first cell.
final
- p2 → CellAnchor
-
The end, exclusive.
final
- range → BufferRange?
-
Returns the range of the highlight. May be null if the anchors that
define the highlight are not attached to the terminal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes everything registered and fires
onDisposed.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Disposable disposable) → void -
Disposes
disposabletogether with this object.inherited -
registerCallback(
void callback()) → void -
Calls
callbackwhen this object is disposed.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited