NyForm constructor

NyForm({
  1. Key? key,
  2. required NyFormData form,
  3. double crossAxisSpacing = 10,
  4. double mainAxisSpacing = 10,
  5. Map<String, dynamic>? initialData,
  6. dynamic onChanged(
    1. String field,
    2. Map<String, dynamic> data
    )?,
  7. bool validateOnFocusChange = false,
  8. Widget? header,
  9. Widget? footer,
  10. double headerSpacing = 10,
  11. double footerSpacing = 10,
  12. Widget? loading,
  13. bool locked = false,
})

Implementation

NyForm(
    {super.key,
    required NyFormData form,
    this.crossAxisSpacing = 10,
    this.mainAxisSpacing = 10,
    Map<String, dynamic>? initialData,
    this.onChanged,
    this.validateOnFocusChange = false,
    this.header,
    this.footer,
    this.headerSpacing = 10,
    this.footerSpacing = 10,
    this.loading,
    this.locked = false})
    : form = form..setData(initialData ?? {}, refreshState: false),
      type = "form",
      children = null;