DisplayMode class Null safety

Implementers

Properties

commaDistance int
read-only
displayName String
How this mode is shown on the LCD display
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isFloatMode bool
read-only
radix int
Put calculator in floating-point mode, displaying digits
read-only
rightJustify bool
Are digits right-justified in this mode? If not, they'll be left-justified, like " 1.0 ".
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addCommas(String s) String
convertValuesTo(DisplayMode next, Model<ProgramOperation> model) → void
Convert values in the model when switching between float and int, and vice-versa. We're switching from this mode to next. The 16C does interesting things with x and y here.
format(Value v, Model<ProgramOperation> m) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
select<R, A>(DisplayModeSelector<R, A> selector, A arg) → R
Select something based on whether we're in an int mode or a float mode.
setFloatOverflow(Model<ProgramOperation> m) → void
signMode(IntegerSignMode integerSignMode) SignMode
Give the calculator's effective sign mode, considering the current display mode (which might be float), and the sign mode that was last set when the calculator was in integer mode (which might be now).
toJson() String
toString() String
A string representation of this object. [...]
inherited
tryParse(String s, NumStatus m) Value?

Operators

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

Static Properties

bin IntegerDisplayMode
final
decimal IntegerDisplayMode
final
hex IntegerDisplayMode
final
oct IntegerDisplayMode
final

Static Methods

float(int digits) DisplayMode
digits after the decimal point. If digits is 10, always display in scientific notation.
fromJson(dynamic val) DisplayMode