ProgramListener class Null safety

A listener that receives callbacks when a program delivers results to the user. This is used for testing.

Constructors

ProgramListener()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDone() → void
Called when the program finishes normally, via a RTN instruction.
onError(CalculatorError err) → void
Called when the program has a CalculatorError
onPause() → void
Called when a PSE instruction momentarily pauses the program to display results.
onRS() → void
Called when an R/S instruction stops the program (usually in the middle, to deliver intermediate results).
onStop() → void
Called when the program is stopped due to a keypress
resumeFromPause() Future<void>
A future that completes when we should resume from a pause instruction, after onPause() is called.
toString() String
A string representation of this object. [...]
inherited

Operators

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