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
Implementers

Constructors

RealController({required List<NumberEntry> numbers, required Map<Operation, ArgDone> shortcuts, required Operation lblOperation, required Operation rtn})

Properties

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

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.
override
buttonWidgetDown(CalculatorButton b) → void
inherited
delayForShow(int updateDisplay()) bool
override
doDeferred() bool
getArgsAndRun(Operation op, Arg arg, Resting fromState) → void
Get the arguments described by Arg, and then run it.
override
getBackPanel() Widget
getButtonLayout(ButtonFactory factory, double totalHeight, double totalButtonHeight) ButtonLayout
getErrorNumber(CalculatorError err) int
inherited
getLandscapeButtonFactory(BuildContext context, ScreenPositioner screen) LandscapeButtonFactory
getPortraitButtonFactory(BuildContext context, ScreenPositioner screen) PortraitButtonFactory
handlePSE() → void
Handle the pause operation. Note that this enables stack lift -- see p. 100
inherited
newSelfTests({bool inCalculator = true}) SelfTests
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
showCalculatorError(CalculatorError e, StackTrace? stack) → void
Show an error on the LCD screen.
inherited
showMessage(String message) → void
Show a message on the LCD screen.
inherited
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).
override
toString() String
A string representation of this object.
inherited

Operators

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