contains method

bool contains(
  1. int port
)

Implementation

bool contains(int port) => port >= start && port <= end;