Controller class Null safety

The main controller for the application. This abstract class is implemented by a RealController for normal calculator, and by RunningController, which manages a running calculator program.

Implementers

Constructors

Controller()

Properties

argBase → int
The numeric base for arguments, like register numbers.
read-only
gotoLineNumberKey → Operation
The key used to GTO an absolute line number ("." on the 16C, CHS on the 15C).
read-only
gsbOperation → NormalArgOperation
read-only
gtoOperation → NormalArgOperation
read-only
hashCode → int
The hash code for this object.
read-onlyinherited
keyboard → KeyboardController
read-only
lastKey ↔ Operation?
read / write
minusOp → Operation
read-only
model → Model<Operation>
read-only
multOp → Operation
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
state ↔ ControllerState
read / write

Methods

buttonDown(Operation key) → void
Handle an operation due to a press on the keyboard.
buttonUp() → void
Finish the operation started by buttonDown. This is meaningful for some keys, like SST, show-hex and clear-prefix.
buttonWidgetDown(CalculatorButton b) → void
delayForShow(int updateDisplay()) → bool
getArgsAndRun(Operation op, Arg arg, Resting fromState) → void
Get the arguments described by Arg, and then run it.
getErrorNumber(CalculatorError err) → int
handlePSE() → void
Handle the pause operation. Note that this enables stack lift -- see p. 100
newSelfTests({bool inCalculator = true}) → SelfTests
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pasteToX(String clipboard) → bool
reset() → void
Reset everything but the state of the state machine
resetAll() → void
showCalculatorError(CalculatorError e, StackTrace? stack) → void
Show an error on the LCD screen.
showMessage(String message) → void
Show a message on the LCD screen.
singleStep(DigitEntry? digitEntryStateFrom) → void
Perform a single step action by running one instruction, and then returning to an appropriate state (DigitEntry or Running, as determined by the executed instruction).
toString() → String
A string representation of this object.
inherited

Operators

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