PeerDiscoveryUnavailable class final

The transport reported that peer discovery is unavailable on this platform (DiscoveryUnavailable at the transport layer) — typically a missing local-network permission or multicast entitlement.

Emitted when discovery stops working, and again after each recovery, but never once per failed retry. Show the user guidance (see the platform-setup guide) instead of an empty peer list: without this event, "discovery is blocked" looks exactly like "no peers nearby".

A transport reports this while it starts, which is inside Passnote.open — before any caller holds the object to listen on. Read Passnote.discoveryUnavailableReason once after opening to catch that case, then listen for later changes.

Inheritance

Constructors

PeerDiscoveryUnavailable({required String reason})
Creates the event.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
reason → String
A short human-readable description of what was refused.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited