difference method

  1. @useResult
Duration difference(
  1. Offset other
)

Returns the difference between this and other.

The difference may be negative.

Offset(-1).difference(Offset(2)); // Duration(hours: -3)

Implementation

@useResult Duration difference(Offset other) => Duration(microseconds: _microseconds - other._microseconds);