FlutterDriver.connectedTo constructor

  1. @visibleForTesting
FlutterDriver.connectedTo(VMServiceClient _serviceClient, Peer _peer, VMIsolate _appIsolate, { bool printCommunication: false, bool logCommunicationToFile: true, double timeoutMultiplier: _kDefaultTimeoutMultiplier })

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,
  this.timeoutMultiplier = _kDefaultTimeoutMultiplier,
}) : _printCommunication = printCommunication,
     _logCommunicationToFile = logCommunicationToFile,
     _driverId = _nextDriverId++;