cross method

  1. @override
bool cross(
  1. IntervalWrapper<TimeWrapper> wrapper
)
override

Implementation

@override
bool cross(IntervalWrapper<TimeWrapper> wrapper) {
  var crossStart = wrapper.contains(start);
  var crossEnd = wrapper.contains(end);
  var crossOtherStart = contains(wrapper.start as Date);
  var crossOtherEnd = contains(wrapper.end as Date);
  return crossStart || crossEnd || crossOtherStart || crossOtherEnd;
}