TaskFormDialog constructor

const TaskFormDialog({
  1. Key? key,
  2. required dynamic onSave(
    1. String title,
    2. String subtitle
    ),
  3. String? initialTitle,
  4. String? initialSubtitle,
  5. String dialogTitle = 'Add New Task',
  6. String submitLabel = 'Add',
})

Creates a TaskFormDialog.

The onSave callback is required and is called when the form is submitted with valid data.

Implementation

const TaskFormDialog({
  super.key,
  required this.onSave,
  this.initialTitle,
  this.initialSubtitle,
  this.dialogTitle = 'Add New Task',
  this.submitLabel = 'Add',
});