ports property
Matches if the port of the URL is contained in any of the specified port
lists. For example [80, 443, [1000, 1200]]
matches all requests on port
80, 443 and in the range 1000-1200.
Implementation
List<Object>? get ports => _wrapped.ports?.toDart
.cast<JSAny>()
.map((e) => e.when(
isInt: (v) => v,
isArray: (v) => v.toDart.cast<int>().map((e) => e).toList(),
))
.toList();