NiceJsonSchemaForm constructor

const NiceJsonSchemaForm({
  1. Key? key,
  2. required Map<String, dynamic> schema,
  3. Map<String, dynamic> uiSchema = const {},
  4. Map<String, dynamic>? initialValues,
  5. void onChanged(
    1. Map<String, dynamic> values
    )?,
  6. void onSubmit(
    1. Map<String, dynamic> values
    )?,
  7. String? submitLabel,
  8. bool readOnly = false,
  9. int columnsPerRow = 1,
  10. bool showValidationErrors = true,
  11. Map<String, Widget Function(BuildContext, JsonSchemaProperty, dynamic, ValueChanged )> customWidgets = const {},
})

Implementation

const NiceJsonSchemaForm({
  super.key,
  required this.schema,
  this.uiSchema = const {},
  this.initialValues,
  this.onChanged,
  this.onSubmit,
  this.submitLabel,
  this.readOnly = false,
  this.columnsPerRow = 1,
  this.showValidationErrors = true,
  this.customWidgets = const {},
});