DynamicForm constructor

const DynamicForm({
  1. Key? key,
  2. required List<DynamicField> config,
  3. DynamicFormController? controller,
  4. DynamicFormTheme? theme,
  5. Map<String, FieldBuilder>? customBuilders,
  6. void onSubmit(
    1. Map<String, dynamic> values
    )?,
  7. Widget wrapper(
    1. Widget form
    )?,
  8. Widget submitButtonBuilder(
    1. VoidCallback onSubmit
    )?,
  9. Map<String, dynamic>? initialValues,
  10. bool wrapInForm = true,
})

Creates a new DynamicForm instance.

Implementation

const DynamicForm({
  super.key,
  required this.config,
  this.controller,
  this.theme,
  this.customBuilders,
  this.onSubmit,
  this.wrapper,
  this.submitButtonBuilder,
  this.initialValues,
  this.wrapInForm = true,
});