Files
dragon_ledger/lib/Pages/Dialog/dialog_action.dart

15 lines
409 B
Dart

/// Action/Knopf für den Dialog
class DialogAction {
/// Erstellt eine neue Aktion für den Dialog
DialogAction({required this.label, this.isPrimary = false, this.onPressed});
/// Das Label der Aktion
final String label;
/// Ob es die primäre Aktion ist
final bool isPrimary;
/// Was bei einem Knopfdruck passieren soll
final void Function(Map<String, dynamic> inputValues)? onPressed;
}