operator & method

Period? operator &(
  1. Period other
)

Returns a Period that is the intersection of this and other.

If other does not overlap with this, the returned Period will be null.

If other overlaps with this, the returned Period will be the intersection of the two Periods. Starting at the latest Period.start and ending at the earliest Period.end.

Implementation

Period? operator &(Period other) => getIntersection(other);