LimeniaReportForm constructor

const LimeniaReportForm({
  1. Key? key,
  2. required Future<ReportResult> onSubmit(
    1. ReportDraft draft
    ),
  3. List<ReportCategoryOption>? categories,
  4. GoodFaithConfirmation goodFaith = GoodFaithConfirmation.hidden,
  5. ReportEmergencyHint? emergencyHint = const ReportEmergencyHint(),
  6. String? title,
  7. LimeniaUiStrings? strings,
  8. ValueChanged<ReportResult>? onResult,
  9. VoidCallback? onClose,
})

Creates the form.

Implementation

const LimeniaReportForm({
  super.key,
  required this.onSubmit,
  this.categories,
  this.goodFaith = GoodFaithConfirmation.hidden,
  this.emergencyHint = const ReportEmergencyHint(),
  this.title,
  this.strings,
  this.onResult,
  this.onClose,
});