Operation class Null safety

An operation, triggered by a key on the calculator keyboard, or executed as part of a program.

Inheritance
Implementers

Constructors

Operation({required String name})

Properties

arg Arg
A description of this arguments operation, or ArgDone if there is none. For example, the STO operation has an argument to indicate which register to store to.
read-onlyoverride
argShift ProgramOperation?
If used as an argument, the shift key needed for that argument. Rare: sto g and rcl g do this.
read-onlyinherited
debugLogId int
latefinalinherited
endsDigitEntry bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isShift bool
Is this the f or g shift key?
read-onlyinherited
maxOneByteOpcodes int
read-onlyinherited
name String
Human-readable name for program listing
final
numericValue int?
Give the numeric value of a number key, or one of the 15C's letters (which are 20..24). cf. tests.dart, SelfTests.testNumbers().
read-onlyinherited
programListingArgName String?
Name for this key as an arg in the program listing, if other than the default.
read-onlyinherited
rcName String
The row/column "name", which for digits looks like " 1".
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

beforeCalculate(Resting resting) → void
calcDisabled(Controller controller) bool
By default, operations, if present, work for all kinds of controllers, but cf. BranchingOperation
makeInputState(Arg arg, Controller c, LimitedState fromState) ControllerState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
possiblyAlterStackLift(Controller c) → void
Either enable or disable stack lift, if appropriate, after this operation's calculation is done. This will not be called if this operation doesn't have a calculation (intCalc or floatCalc on itself, or on its argument).
pressed(LimitedState arg) → void
What to do when the key is pressed.
toString() String
A string representation of this object.
override

Operators

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