WalletHostTransport class
A HOST-provided transport description — for hosts that route wallet
traffic through their OWN privacy layer (an app-wide proxy: xray/vless,
a VPN tunnel, a custom Tor integration) that the SDK cannot see. The SDK's
own TorState then honestly reads "Tor off" even though the traffic IS
protected — this override lets the host tell the truth instead. Wired via
walletHostTransportProvider (wallet_providers.dart); null (the default)
derives the presentation from the SDK's TorState.
Constructors
- WalletHostTransport({required String label, required bool protection, String? detail})
-
const
Properties
- detail → String?
-
Optional HOST-LOCALIZED sheet explanation. When null, a generic
proxy/direct explanation (keyed off protection) is used.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Short, HOST-LOCALIZED display label ("VLESS", "Proxy", "VPN"). Shown on
the sync sheet's Connection row and in the badge's a11y label — keep it
to one or two words.
final
- protection → bool
-
Whether this transport actually hides the user's network identity from
the lightwalletd server. Drives the indicator tone: only
trueearns the protected (green, filled-shield) treatment — a plain load balancer or an unencrypted forward proxy must passfalse(the §3.3 privacy rule: never claim a protection that is not running).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