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. Map<String, dynamic> data
    )?,
  7. bool validateOnFocusChange = false,
  8. 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.locked = false})
    : this.form = form..setData(initialData ?? {}, refreshState: false);