CrossmintWalletProviderConfig constructor

const CrossmintWalletProviderConfig({
  1. CrossmintClientConfig? clientConfig,
  2. CrossmintWalletControllerConfig walletControllerConfig = const CrossmintWalletControllerConfig(),
  3. CrossmintWalletProviderDependencies? dependencies,
  4. bool disposeInjectedDependencies = false,
  5. CrossmintAuthLinkProvider? authLinkProvider,
  6. bool startAuthCallbackRouter = true,
  7. bool autoLoadWallet = true,
  8. String? jwt,
  9. CrossmintOtpPromptBuilder? otpPromptBuilder,
  10. 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.',
     );