FlutterDriver.connectedTo constructor

  1. @visibleForTesting
FlutterDriver.connectedTo(
  1. VMServiceClient serviceClient,
  2. Peer _peer,
  3. VMIsolate appIsolate,
  4. {bool printCommunication: false,
  5. 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++;