signedAD static method
- dynamic adConfig
This is a helper function that prints out the kind of addend (selected by
a Logic or set statically by a bool
).) This supplements the
Multiplier functions that can be used for multiplicand and multiplier as
they are statics: Multiplier.signedMD and Multiplier.signedML.
- UA: unsigned addend.
- SA: signed addend.
- SSA: dynamic selection of signed addend.
Implementation
static String signedAD(dynamic adConfig) =>
((adConfig is! StaticOrRuntimeParameter) | (adConfig == null))
? 'UA'
: (adConfig as StaticOrRuntimeParameter).runtimeConfig != null
? 'SSA'
: adConfig.staticConfig
? 'SA'
: 'UA';