CalculatorOff class Null safety

State when the calculator is off. On desktop and mobile, the calculator screen is dismissed, but that's awkward on the web, especially if the calculator is embedded in a page. So, in the web case, we turn off the LCD display, and wait in this state to see if the user presses ON at some point.

Inheritance

Constructors

CalculatorOff(Controller con)

Properties

controller Controller
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
model Model<Operation>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

buttonDown(Operation key) → void
override
buttonUp(Operation key) → void
inherited
changeState<T extends ControllerState>(T v) → T
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onChangedTo() → void
Called by the controller when this state is changed to
inherited
toString() String
A string representation of this object. [...]
inherited
unreachable() → void
Convenience method to call from an unreachable operation on a state
@protected, inherited

Operators

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