onSubmit property
Callback function that will be called when the report is submitted.
onSubmit accepts a ReportFormData object containing the details of the report such as category, description, and contact information.
Implementation
final Function(ReportFormData formData) onSubmit;