CrossmintWalletProviderConfig constructor
const
CrossmintWalletProviderConfig({
- CrossmintClientConfig? clientConfig,
- CrossmintWalletControllerConfig walletControllerConfig = const CrossmintWalletControllerConfig(),
- CrossmintWalletProviderDependencies? dependencies,
- bool disposeInjectedDependencies = false,
- CrossmintAuthLinkProvider? authLinkProvider,
- bool startAuthCallbackRouter = true,
- bool autoLoadWallet = true,
- String? jwt,
- CrossmintOtpPromptBuilder? otpPromptBuilder,
- bool mountBridgeHosts = true,
Creates a provider config. Either clientConfig or dependencies must
be non-null.
Implementation
const CrossmintWalletProviderConfig({
this.clientConfig,
this.walletControllerConfig = const CrossmintWalletControllerConfig(),
this.dependencies,
this.disposeInjectedDependencies = false,
this.authLinkProvider,
this.startAuthCallbackRouter = true,
this.autoLoadWallet = true,
this.jwt,
this.otpPromptBuilder,
this.mountBridgeHosts = true,
}) : assert(
clientConfig != null || dependencies != null,
'Provide either clientConfig or dependencies.',
);