TerminalOverrides class abstract

This class facilitates overriding terminal utilities. It should be extended by another class in client code with overrides that construct a custom implementation.

Constructors

TerminalOverrides.new()

Properties

createTerminal Terminal Function()
The function used to create a Terminal instance.
no setter
hashCode int
The hash code for this object.
no setterinherited
readKey KeyStroke Function()
The function used to read key strokes from stdin.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exit(int code) → Never
Exit the process with the provided code.
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 Properties

current TerminalOverrides?
Returns the current TerminalOverrides instance.
no setter

Static Methods

runZoned<R>(R body(), {KeyStroke readKey()?, Terminal createTerminal()?, Never exit(int code)?}) → R
Runs body in a fresh Zone using the provided overrides.