PingService({ this.urlTarget = 'https://www.google.com/', this.timeout = const Duration(seconds: 3), }) { _restartStream(); }