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 owner from p1 to p2; use TerminalController.highlight, which also shows it.

Properties

color → Color
The colour painted over the range (its alpha is kept).
final
disposed → bool
Whether dispose was called.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
onDisposed → Event
Fires after dispose has 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 disposable together with this object.
inherited
registerCallback(void callback()) → void
Calls callback when this object is disposed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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