negate static method

Offset negate(
  1. Offset offset
)

Returns the negation of the specified offset. This is the method form of the unary minus operator.

  • offset: The offset to negate.

Returns: The negation of the specified offset.

Implementation

static Offset negate(Offset offset) => -offset;