unavailableReason property

String? get unavailableReason

Why the last probe answered false, phrased as a remedy.

A bool is the right answer for the gate and the wrong answer for the user: "not reachable" is true of a missing Node runtime, a missing server script and an editor whose CLI server was never started, and those three have nothing in common except that none of them is actionable from that sentence. connect already produces a remedy-naming message, but a candidate that fails to probe is never connected — so without this the careful message is only ever seen in the race where a server disappears between the scan and the handshake.

Null means "no reason recorded" — either the transport was never probed, or the probe succeeded. Implementations set it on every false probe.

Implementation

String? get unavailableReason => null;