operator - method

TimeOfDay operator -(
  1. DateTime other
)

Implementation

TimeOfDay operator -(DateTime other) {
  var differnce = difference(other);
  return TimeOfDay(hour: differnce.inHours, minute: differnce.inMinutes - (60 * differnce.inHours));
}