FloatingPointRoundingModeKnob constructor
- FloatingPointRoundingMode value = FloatingPointRoundingMode.roundNearestEven,
Creates a floating-point rounding-mode selection knob.
Implementation
FloatingPointRoundingModeKnob({
super.value = FloatingPointRoundingMode.roundNearestEven,
}) : super(
FloatingPointRoundingMode.values,
choiceLabels: const {
FloatingPointRoundingMode.truncate: 'Truncate',
FloatingPointRoundingMode.roundNearestEven:
'Round nearest, ties to even',
FloatingPointRoundingMode.roundNearestTiesAway:
'Round nearest, ties away',
FloatingPointRoundingMode.roundTowardsZero: 'Round toward zero',
FloatingPointRoundingMode.roundTowardsInfinity:
'Round toward positive infinity',
FloatingPointRoundingMode.roundTowardsNegativeInfinity:
'Round toward negative infinity',
},
);