operator - method

DateTime operator -(
  1. DateTime other
)

Allows you to subtract EDateTime between each other

Implementation

DateTime operator -(DateTime other) {
  return subtract(Duration(days: difference(other).inDays));
}