SpyTerminal class
A terminal that tracks method calls for verification.
- Implemented types
Constructors
Properties
-
calls
→ List<
String> -
All method calls made to this terminal.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- input → TerminalInput
-
The input stream for reading key events and managing terminal modes.
no setteroverride
- output → TerminalOutput
-
The output stream for writing content and querying terminal dimensions.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callCount(
String method) → int - Count how many times a method was called.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Reset call history.
-
toString(
) → String -
A string representation of this object.
inherited
-
wasCalled(
String method) → bool - Check if a method was called.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited