CrossmintExportPrivateKeyButtonBuilder typedef

CrossmintExportPrivateKeyButtonBuilder = Widget Function(BuildContext context, {required bool isLoading, required VoidCallback? onExport})

Builder signature for the visual of CrossmintExportPrivateKeyButton. The widget owns the loading state and the eligibility check; the builder receives isLoading and onExport so the consumer can render any tap target that fits their design system. onExport is null while the export is in flight so a consumer button (e.g. ElevatedButton) is automatically disabled without a separate mounted check.

Implementation

typedef CrossmintExportPrivateKeyButtonBuilder =
    Widget Function(
      BuildContext context, {
      required bool isLoading,
      required VoidCallback? onExport,
    });