Model16 class Null safety

Inheritance

Constructors

Model16()

Properties

captureDebugLog bool
Starts or stops capturing debug log information. A debug log captures the calculator state, and subsequent keystrokes. It's meant to be a tool to facilitate bug reports.
read / writeinherited
cFlag bool
read / writeoverride
debugLog DebugLog?
read-onlyinherited
display DisplayModel
latefinalinherited
displayDisabled bool
read / writeinherited
displayLeadingZeros bool
read-onlyoverride
displayMode DisplayMode
read / writeinherited
doubleWordStatus DoubleWordStatus
Gives a helper object for implementation of the double-integer multiply, remainder and divide operations.
read-onlyinherited
read-onlyoverride
floatOverflow bool
The float overflow flag, which is stored as gFlag on the 16C. On the 15C, it causes errorFlash to be true.
read / writeoverride
gFlag bool
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
integerSignMode IntegerSignMode
read / writeinherited
internalSnapshot Observable<ModelSnapshot>
read-onlyinherited
is15C bool
read-onlyoverride
isComplexMode bool
read / writeinherited-getteroverride-setter
isFloatMode bool
read-onlyinherited
lastX Value
read / writeinherited
lastXC Complex
read / writeinherited
lastXImaginary Value
read-onlyinherited
logicalKeys List<List<MKey<Operation>?>>
The list of "logical" keys. This has nothing to do with the UI; The order of the operations in this list determines the externalized form of the operations in the calculator's storage (the opcodes). It also determines the displayed appearance of operations in program mode, whether the calculator is in portrait or landscape orientation.
read-onlyoverride
maxInt BigInt
read-onlyinherited
memory Memory<Operation>
latefinal
minInt BigInt
read-onlyinherited
modelName String
The name of this model of the calculator (16C or 15C).
read-onlyoverride
needsSave bool
read / writeinherited
onIsPressed Observable<bool>
finalinherited
popSetResultX Value
Pop the stack and set X, setting lastX
write-onlyinherited
popSetResultXC Complex
Pop the stack and set X from a Dart double, setting lastX
write-onlyinherited
popSetResultXF double
Pop the stack and set X from a Dart double, setting lastX
write-onlyinherited
popSetResultXI BigInt
Pop the stack and set X from a signed BigInt, setting lastX
write-onlyinherited
prgmFlag bool
Are we entering a program?
read / writeinherited
program ProgramMemory<Operation>
read-onlyinherited
registerNumberBase int
Are register numbers base 10 (15C), or base 16 (16C)?
read-onlyoverride
resultX Value
Set a result in X, which saves the old X value in lastX
write-onlyinherited
resultXC Complex
write-onlyinherited
resultXF double
write-onlyinherited
resultXI BigInt
write-onlyinherited
returnStackSize int
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings Settings
latefinalinherited
shift ShiftKey
read / writeinherited
signMask BigInt
read-onlyinherited
signMode SignMode
read-onlyinherited
t Value
read / writeinherited
trigMode TrigMode
read / writeinherited
userMode bool
read-onlyinherited
wordMask BigInt
read-onlyinherited
wordSize int
Set the word size, and fix up the values on the stack for the new size. A size of 0 is interpreted as 64, as per the 16C.
read / writeinherited
x Value
read / writeinherited
xC Complex
Get x as a complex value
read / writeinherited
xF double
Get x as a Dart double
read / writeinherited
xI BigInt
Get x as a signed BigInt
read / writeinherited
xImaginary Value
Just the imaginary part of x
read / writeinherited
xPreserveCLX Value
write-onlyinherited
xRealF double
Set the real part of X, leaving the imaginary part alone, and not setting LastX. Clear clxDone. The 15C's stack management is simple! ;-)
write-onlyinherited
y Value
read / writeinherited
yC Complex
read / writeinherited
yF double
read / writeinherited
yI BigInt
read / writeinherited
z Value
read / writeinherited
zC Complex
read-onlyinherited
zF double
write-onlyinherited

Methods

addProgramTraceToSnapshot(String f()) → void
inherited
addStuffToSnapshot(StringBuffer buf) → void
inherited
chsX() → void
Negate the value in x like the CHS key does. The behavior varies according to the current sign mode. In complex mode, it leaves the imaginary part alone, and does not change the CLX status.
inherited
clx() → void
inherited
compare(Value x, Value y) int
Compare two values according to the current sign mode
inherited
decodeJson(Map<String, dynamic> json, {required bool needsSave}) → void
Convert from a data structure that comes from JSON. If there's an error in the middle, it might be partially read, but not in a way that causes bad behavior in the calculator.
inherited
formatValue(Value v) String
inherited
getFlag(int i) bool
inherited
getStackByIndex(int i) Value
inherited
getStackByIndexC(int i) Complex
inherited
initializeFromJsonOrUri(String linkOrJson) bool
inherited
isZero(Value v) bool
Determine if this value is 0 or, if applicable, -0. Not for use with an index register value, since it can have a different representation for -0 -- cf. Memory.isZeroI()
inherited
newProgramInstruction(Operation operation, ArgDone arg) ProgramInstruction<Operation>
Create an instance of the model-specific ProgramInstruction subtype
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
optimizeInternalSnapshot() → void
inherited
popStack() → void
inherited
pushStack() → void
"lift" stack, after which one can write to x
inherited
readFromPersistentStorage() Future<void>
inherited
reset() → void
Reset the calculator to its default state.
override
inherited
resetFromPersistentStorage() Future<void>
inherited
rotateStackDown() → void
the R key
inherited
rotateStackUp() → void
The R key
inherited
selfTestContents() LcdContents
override
setFlag(int i, bool v) → void
inherited
setupComplex(List<Value>? imaginaryStack) → void
inherited
setXYZT(Value v) → void
inherited
setYZT(Value v) → void
inherited
swapXY() → void
inherited
toJson() Map<String, Object>
Convert to a data structure that can be serialized as JSON.
inherited
toString() String
A string representation of this object.
inherited
tryParseValue(String s) Value?
Try to parse s consistent with the current display mode, giving a Value on success.
inherited
writeToPersistentStorage() Future<void>
inherited

Operators

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