NyForm constructor
NyForm({
- Key? key,
- required NyFormData form,
- double crossAxisSpacing = 10,
- double mainAxisSpacing = 10,
- Map<
String, dynamic> ? initialData, - dynamic onChanged()?,
- bool validateOnFocusChange = false,
- Widget? header,
- double headerSpacing = 10,
- @Deprecated('Use loadingStyle instead') Widget? loading,
- LoadingStyle? loadingStyle,
- 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,
@Deprecated('Use loadingStyle instead') this.loading,
LoadingStyle? loadingStyle,
this.locked = false})
: form = form..setData(initialData ?? {}, refreshState: false),
type = "form",
loadingStyle = loadingStyle ?? LoadingStyle.skeletonizer(),
children = null;