showClearAllConfirmation static method
Shows a "Clear all" confirmation dialog
Returns true if user confirmed clearing, false if cancelled
Implementation
static Future<bool?> showClearAllConfirmation(
BuildContext context, {
String? itemType,
}) {
final title = 'Clear All ${itemType ?? 'Items'}?';
final message =
'Are you sure you want to clear all ${itemType?.toLowerCase() ?? 'items'}? This action cannot be undone.';
return SavePointsDialog.show(
context,
title: title,
message: message,
icon: Icons.clear_all_rounded,
iconColor: Colors.orange,
confirmText: 'Clear All',
cancelText: 'Cancel',
showCancelButton: true,
);
}