ScanResult constructor
ScanResult()
Main constructor
Implementation
ScanResult({String? host, List<int> ports = const [], List<int> open = const [], List<int> closed = const [], List<int> scanned = const [], ScanStatuses status = ScanStatuses.unknown}) {
this.host = host;
this.ports.addAll(ports);
this.open.addAll(open);
this.closed.addAll(closed);
this.scanned.addAll(scanned);
_status = status;
if (status != ScanStatuses.finished) _startTime = DateTime.now();
}