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++;