operator unary- method
Return the negative value of this integer.
The result of negating an integer always has the opposite sign, except for zero, which is its own negation.
Implementation
int operator -() => -value;
Return the negative value of this integer.
The result of negating an integer always has the opposite sign, except for zero, which is its own negation.
int operator -() => -value;