NiceJsonSchemaForm constructor
const
NiceJsonSchemaForm({ - Key? key,
- required Map<String, dynamic> schema,
- Map<String, dynamic> uiSchema = const {},
- Map<String, dynamic>? initialValues,
- void onChanged(
- Map<String, dynamic> values
)?,
- void onSubmit(
- Map<String, dynamic> values
)?,
- String? submitLabel,
- bool readOnly = false,
- int columnsPerRow = 1,
- bool showValidationErrors = true,
- 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 {},
});