contains method

bool contains(
  1. Duration time
)

Implementation

bool contains(Duration time) => time >= start && time < end;