OperationArg class Null safety

A description of the argument for a NormalArgOperation or a BranchingArgOperation. This includes the calculation that is to be performed when the argument value is available.

Implementers

Constructors

OperationArg(int maxArg, {required void floatCalc(Model<ProgramOperation>, int)?, required void intCalc(Model<ProgramOperation>, int)?, void pressed(ActiveState)?})
OperationArg.both(int maxArg, {required void calc(Model<ProgramOperation>, int), void pressed(ActiveState)?})
OperationArg.intOnly(int maxArg, {required void intCalc(Model<ProgramOperation>, int)?, void pressed(ActiveState)?})

Properties

floatCalc → (void Function?(Model<ProgramOperation>, int)?)
final
hashCode int
The hash code for this object. [...]
read-only, inherited
intCalc → (void Function?(Model<ProgramOperation>, int)?)
final
maxArg int
final
op NormalArgOperation
final, read / write, late
pressed → (void Function?(ActiveState)?)
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

makeInputState(Controller c, LimitedState fromState) ControllerState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onArgComplete(LimitedState state, int argValue) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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