operator unary- method

Offset operator unary-()

Implements the unary operator - (negation).

  • offset: The offset to negate.

Returns: A new Offset instance with a negated value.

Implementation

Offset operator -() =>
// Guaranteed to still be in range.
Offset._(-inSeconds);