CrossmintOtpPromptBuilder typedef
CrossmintOtpPromptBuilder =
Widget Function(BuildContext context, CrossmintWalletOtpController otpController, Widget child)
Builds a widget that owns the OTP signer prompt UI for the wallet provider.
The provider invokes this builder when its wallet controller has a pending
OTP challenge so that consumers can render the prompt with their own design
system. Pass crossmintDefaultOtpPromptBuilder (from
crossmint_flutter_ui.dart) for the Material default that mirrors the
React Native SDK; supply a custom builder for headless integrations.
Implementation
typedef CrossmintOtpPromptBuilder =
Widget Function(
BuildContext context,
CrossmintWalletOtpController otpController,
Widget child,
);