DialogCommand constructor

const DialogCommand({
  1. Key? key,
  2. Set<String> options = const {},
  3. TextInputType? keyboardType,
  4. bool obscureText = false,
  5. Widget? placeholder,
  6. String? initialValue,
  7. int? maxLength,
  8. Widget? leading,
  9. Widget? trailing,
  10. required void onConfirm(
    1. String result
    ),
})

Constructs a new DialogCommand widget with the specified configuration.

The onConfirm parameter is required and defines how the confirmed input is handled. All other parameters are optional and allow customization of the dialog's appearance and behavior. The widget is const-constructible for performance optimization in Flutter builds.

Implementation

const DialogCommand(
    {super.key,
    this.options = const {},
    this.keyboardType,
    this.obscureText = false,
    this.placeholder,
    this.initialValue,
    this.maxLength,
    this.leading,
    this.trailing,
    required this.onConfirm});