TerminalLibraryFlutterController class

UncompleteDocumentation

Mixed-in types

Constructors

TerminalLibraryFlutterController.new({SelectionMode selectionMode = SelectionMode.line, PointerInputs pointerInputs = const PointerInputs({PointerInput.tap}), bool suspendPointerInput = false})
UncompleteDocumentation

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
highlights List<TerminalLibraryFlutterHighlight>
UncompleteDocumentation
no setter
pointerInput PointerInputs
The set of pointer events which will be used as mouse input for the terminal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection BufferRange?
UncompleteDocumentation
no setter
selectionMode SelectionMode
UncompleteDocumentation
no setter
suspendedPointerInputs bool
True if sending pointer events to the terminal is suspended.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearSelection() → void
Clears the current selection.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
highlight({required CellAnchor p1, required CellAnchor p2, required Color color}) TerminalLibraryFlutterHighlight
Creates a new highlight on the terminal from p1 to p2 with the given color. The highlight will be removed when the returned object is disposed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setPointerInputs(PointerInputs pointerInput) → void
UncompleteDocumentation
setSelection(CellAnchor base, CellAnchor extent, {SelectionMode? mode}) → void
Set selection on the terminal from base to extent. This method takes the ownership of base and extent and will dispose them when the selection is cleared or changed.
setSelectionMode(SelectionMode newSelectionMode) → void
Controls how the terminal behaves when the user selects a range of text. The default is SelectionMode.line. Setting this to SelectionMode.block enables block selection mode.
setSuspendPointerInput(bool suspend) → void
UncompleteDocumentation
shouldSendPointerInput(PointerInput pointerInput) bool
UncompleteDocumentation
toString() String
A string representation of this object.
inherited

Operators

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