Settings class Null safety

User settings that control the calculator's appearance or behavior

Constructors

Settings(Model<ProgramOperation> _model)

Properties

euroComma ↔ bool
Should we show numbers Euro-style, with commas instead of periods and vice-versa?
read / write
fKeyColor ↔ int
read / write
fTextColor ↔ int
read / write
gKeyColor ↔ int
read / write
gTextColor ↔ int
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
hideComplement ↔ bool
Should we hide the complement annunciator?
read / write
integerModeCommas ↔ bool
read / write
isMobilePlatform → bool
Not really a setting, but we need it in the same places: Is it possible to set the screen orientation on this device? It is iff we're a native mobile app.
read-only
lcdBackgroundColor ↔ int
read / write
lcdForegroundColor ↔ int
read / write
final
msPerInstruction ↔ double
How long do we want an instruction to take when running a program? Note that number keys run about 5x faster than this.
read / write
orientation ↔ OrientationSetting
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
showAccelerators → Observable<bool>
final
showWordSize ↔ bool
Should we show the word size annunciator on the display?
read / write
systemOverlaysDisabled ↔ bool
read / write
traceProgramToStdout → bool
When running a program, should a program trace be sent to stdout? This can only be set by importing a JSON file, on the theory that people who can get at stdout are also comfortable hacking a JSON file, and trying to explain "stdout" in a settings menu is hard.
read-only
windowEnabled ↔ bool
Should the window functions be enabled? If not, we just shrink the digits when a number is too big.
read / write

Methods

decodeJson(Map<String, dynamic> json) → 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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setPlatformOverlays() → void
toJson() → Map<String, dynamic>
Convert to a data structure that can be serialized as JSON.
toString() → String
A string representation of this object.
inherited

Operators

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