ExternalWalletOption class
Registry wallet key with display and launch metadata, not live connection state.
Constructors
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
- nativeLink → String?
-
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
- universalLink → String?
-
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.
-
connectionDeeplink(
String connectionUri) → String? - 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