ExternalWalletOption class

Registry wallet key with display and launch metadata, not live connection state.

Constructors

ExternalWalletOption({required String key, required String name, required String chain, String? iconUrl, String? primaryColor, String? nativeLink, String? universalLink, String? androidStoreUrl, String? iosStoreUrl})
const

Properties

androidStoreUrl → String?
Play Store page, for a host that offers to install a wallet the user does not have.
final
chain → String
The wallet's primary chain as an app chain code ('EVM', 'SOL', ...) — one per wallet, matching the registry, even for a wallet that in fact supports several.
final
hashCode → int
The hash code for this object.
no setterinherited
iconUrl → String?
Registry icon reference, possibly an SVG sprite fragment; not necessarily a native bitmap URL.
final
iosStoreUrl → String?
final
key → String
Stable registry id ('metamask', 'trust', ...). Pass it back as beginExternalWalletConnect's walletKey.
final
name → String
final
The wallet's own deep link ('metamask://wc'). Mobile prefers this one: the OS treats a custom scheme as a first-class app link, so the round trip back to the app is faster.
final
primaryColor → String?
The wallet's brand color as hex ('#E8831D'), for a host that themes its picker.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
The wallet's https link ('https://metamask.app.link/wc'). Desktop prefers this one, since a browser cannot resolve a mobile-only custom scheme. Either link can be null, and a wallet with neither can only be reached by QR.
final

Methods

chainsForConnect(List<String> chains) → List<String>
Restricts EVM, SOL, and BTC namespaces to the selected wallet's chain family. Leaves other families unchanged.
Wallet registry deep link with the encoded connection URI appended, preserving existing query parameters. Null means QR-only pairing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → ExternalWalletOption