WebFlutterDriver.connectedTo constructor

WebFlutterDriver.connectedTo(
  1. FlutterWebConnection _connection, {
  2. bool printCommunication = false,
  3. bool logCommunicationToFile = true,
})

Creates a driver that uses a connection provided by the given _connection.

Implementation

WebFlutterDriver.connectedTo(
  this._connection, {
  bool printCommunication = false,
  bool logCommunicationToFile = true,
})  : _printCommunication = printCommunication,
      _logCommunicationToFile = logCommunicationToFile,
      _startTime = DateTime.now(),
      _driverId = _nextDriverId++
  {
    _logFilePathName = path.join(testOutputsDirectory, 'flutter_driver_commands_$_driverId.log');
  }