absoluteDecimalFixedPoint function

DecimalFixedPoint absoluteDecimalFixedPoint(
  1. DecimalFixedPoint value
)

Returns the absolute value of value.

Implementation

DecimalFixedPoint absoluteDecimalFixedPoint(DecimalFixedPoint value) {
  return value.raw.isNegative ? _withDecimalRaw(value, -value.raw) : value;
}