toOpposite property

num get toOpposite

Implementation

num get toOpposite {
  if (isNegative) {
    return abs();
  } else {
    return "-$this".toInt;
  }
}