difference method

Duration difference(
  1. AnyDate other
)

Implementation

Duration difference(AnyDate other) {
  assert(
    other is DateTime || other is SlickDateTime,
    'Argument must be DateTime or SlickDateTime',
  );
  return _inner.difference(_unwrap(other));
}