operator unary- method

num? operator unary-()

Negate operator.

Implementation

num? operator -() {
  if (value != null) {
    return -value!;
  }
  return null;
}