RealController class Null safety

A controller for normal calculator operation. When a program is running, the real controller continues to exist, for when the program stops.

Inheritance

Constructors

RealController(Model<Operation> model)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
keyboard KeyboardController
final
model Model<Operation>
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state ControllerState
read / write, inherited

Methods

buttonDown(Operation key) → void
Handle an operation due to a press on the keyboard.
override
buttonUp() → void
Finish the operation started by buttonDown. This is meaningful for some keys, like SST, show-hex and clear-prefix.
inherited
handlePSE() → void
Handle the pause operation. Note that this enables stack lift -- see p. 100
@mustCallSuper, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pasteToX(String clipboard) bool
inherited
reset() → void
Reset everything but the state of the state machine
inherited
resetAll() → void
inherited
runWithArg(OperationArg arg, LimitedState fromState) → void
Run the operation arg.op when its argument is available. When running a program, that's now.
override
showCalculatorError(CalculatorError e) → void
Show an error on the LCD screen.
inherited
showMessage(String message) → void
Show a message on the LCD screen.
inherited
singleStep(DigitEntry? currentDE) → 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).
override
toString() String
A string representation of this object. [...]
inherited

Operators

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