AForm<T> constructor

const AForm<T>({
  1. Key? key,
  2. required List<Widget> fields,
  3. List<Widget>? rightFields,
  4. required T fromJson(
    1. dynamic
    ),
  5. List<Widget> actions = const <Widget>[],
  6. Color? backgroundColor,
  7. bool backIcon = true,
  8. bool backButton = false,
  9. bool obscureAll = false,
  10. dynamic initialData,
  11. String? submitText,
  12. EdgeInsets padding = const EdgeInsets.all(20),
  13. double fieldsPadding = 5,
  14. double actionsPadding = 5,
  15. required Future<String?> onSubmit(
    1. T
    ),
  16. Future<void> onCancelled()?,
  17. void onSuccess()?,
  18. void onLoadingChange(
    1. bool loading
    )?,
  19. bool showAllForm = true,
  20. bool showDefaultAction = true,
  21. Color? actionColor,
  22. dynamic setterChanges(
    1. T
    )?,
  23. double minDualColumWidth = 600,
  24. Widget? fieldsTitle,
  25. Widget? rightFieldsTitle,
  26. Widget? topBar,
})

Implementation

const AForm({
  super.key,
  required this.fields,
  this.rightFields,
  required this.fromJson,
  this.actions = const <Widget>[],
  this.backgroundColor,
  this.backIcon = true,
  this.backButton = false,
  this.obscureAll = false,
  this.initialData,
  this.submitText,
  this.padding = const EdgeInsets.all(20),
  this.fieldsPadding = 5,
  this.actionsPadding = 5,
  required this.onSubmit,
  this.onCancelled,
  this.onSuccess,
  this.onLoadingChange,
  this.showAllForm = true,
  this.showDefaultAction = true,
  this.actionColor,
  this.setterChanges,
  this.minDualColumWidth = 600,
  this.fieldsTitle,
  this.rightFieldsTitle,
  this.topBar,
});