RunningController class Null safety

A controller for when a program is running.

Inheritance

Constructors

RunningController(Controller real, {bool digitEntryState = false})

Properties

argValue int?
read / write
currentDigitEntryState DigitEntry?
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
keyboard KeyboardController
read-only, override
model Model<Operation>
final, inherited
pause bool
read / write
pendingError CalculatorError?
read / write
real Controller
final
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.
inherited
buttonUp() → void
Finish the operation started by buttonDown. This is meaningful for some keys, like SST, show-hex and clear-prefix.
override
handlePSE() → void
Handle the pause operation. Note that this enables stack lift -- see p. 100
override
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
returnToParent(ControllerState s) → void
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.
override
showMessage(String message) → void
Show a message on the LCD screen.
inherited
singleStep(DigitEntry? currentState) → 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