init static method
void
init({
- required String projectId,
- required List<
int> chains, - CoreStorage storage = CoreStorage.localStorage,
- required bool enableAnalytics,
- required bool enableOnRamp,
- required Web3ModalMetadata metadata,
- required bool email,
- List<
String> ? socials, - required bool showWallets,
- required bool walletFeatures,
- TransportBuilder? transportBuilder,
- List<
String> ? includeWalletIds, - List<
String> ? featuredWalletIds, - List<
String> ? excludeWalletIds,
Implementation
static void init({
required String projectId,
required List<int> chains,
CoreStorage storage = CoreStorage.localStorage,
required bool enableAnalytics,
required bool enableOnRamp,
required Web3ModalMetadata metadata,
required bool email,
List<String>? socials,
required bool showWallets,
required bool walletFeatures,
TransportBuilder? transportBuilder,
List<String>? includeWalletIds,
List<String>? featuredWalletIds,
List<String>? excludeWalletIds,
}) {
window.web3modal.init(
projectId.toJS,
chains
.map(
(e) => e.toJS,
)
.toList()
.toJS,
storage.toJS,
enableAnalytics.toJS,
enableOnRamp.toJS,
metadata._toJS(),
email.toJS,
socials.jsify() as JSArray<JSString>?,
showWallets.toJS,
walletFeatures.toJS,
transportBuilder?.toJS,
includeWalletIds?.jsify() as JSArray<JSString>?,
featuredWalletIds?.jsify() as JSArray<JSString>?,
excludeWalletIds?.jsify() as JSArray<JSString>?,
);
}