connectionReport property
ConnectionReport
get
connectionReport
Why the app is (not) connected, for the in-app panel.
Implementation
ConnectionReport get connectionReport {
final lan = _lanEndpoint();
final connected = _connection.connected;
return ConnectionReport(
connected: connected,
via: _connection.via,
attempts: connected ? const <ConnectAttempt>[] : _attempts,
failedRounds: connected ? 0 : _failedRounds,
trying: !connected && _trying,
lanEndpoint: lan?.toString(),
lanFromPanel: _panelHost != null,
buildHost: _buildHost,
issue: connected || _attempts.isEmpty
? null
: diagnoseConnection(
attempts: _attempts,
platform: device.platform,
isPhysical: device.isPhysical ?? true,
lanEndpoint: lan?.toString(),
),
everConnected: _everConnected,
listensForUsb: device.isIosPhysical && options.listenForUsb,
);
}