FlutterDriver.connectedTo constructor

  1. @visibleForTesting
FlutterDriver.connectedTo(VMServiceClient serviceClient, Peer _peer, VMIsolate appIsolate, { bool printCommunication: false, bool logCommunicationToFile: true })

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

Implementation

@visibleForTesting
FlutterDriver.connectedTo(
  this.serviceClient,
  this._peer,
  this.appIsolate, {
  bool printCommunication = false,
  bool logCommunicationToFile = true,
}) : _printCommunication = printCommunication,
     _logCommunicationToFile = logCommunicationToFile,
     _driverId = _nextDriverId++;