VMServiceFlutterDriver.connectedTo constructor

VMServiceFlutterDriver.connectedTo(
  1. VmService _serviceClient,
  2. Isolate _appIsolate,
  3. {bool printCommunication = false,
  4. bool logCommunicationToFile = true}
)

Creates a driver that uses a connection provided by the given serviceClient and appIsolate.

Implementation

VMServiceFlutterDriver.connectedTo(
  this._serviceClient,
  this._appIsolate, {
    bool printCommunication = false,
    bool logCommunicationToFile = true,
  }) : _printCommunication = printCommunication,
    _logCommunicationToFile = logCommunicationToFile,
    _driverId = _nextDriverId++
  {
    _logFilePathName = p.join(testOutputsDirectory, 'flutter_driver_commands_$_driverId.log');
  }