ProgramListener class Null safety

A listener that receives callbacks when a program delivers results to the user.

Constructors

ProgramListener()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 stops due to a CalculatorError
onErrorShown(CalculatorError err, StackTrace? stack) → void
Called at the moment a calculator error is shown, whether a program is running or not. If a program is running, this should be followed by onError().
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