DisplayModeSelector<R, A> class Null safety

Helper to select something based on whether the calculator's display mode is one of the int modes, or float mode. We use a factory template to pull off dependency inversion between the model (us) and the controller, for the sake of OO purity.

NB: In Dart, this isn't as statically type-safe as one might imagine, because Dart allows unsound covariant assignment, viz https://github.com/dart-lang/sdk/issues/45731 That's mostly harmless here.

Constructors

DisplayModeSelector()
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
selectComplex(A arg) → R
selectFloat(A arg) → R
selectInteger(A arg) → R
toString() String
A string representation of this object.
inherited

Operators

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