ObjectFormField<T> constructor

const ObjectFormField<T>({
  1. Key? key,
  2. required T? value,
  3. ValueChanged<T?>? onChanged,
  4. required Widget placeholder,
  5. required Widget builder(
    1. BuildContext context,
    2. T value
    ),
  6. Widget? leading,
  7. Widget? trailing,
  8. PromptMode mode = PromptMode.dialog,
  9. required Widget editorBuilder(
    1. BuildContext context,
    2. ObjectFormHandler<T> handler
    ),
  10. AlignmentGeometry? popoverAlignment,
  11. AlignmentGeometry? popoverAnchorAlignment,
  12. EdgeInsetsGeometry? popoverPadding,
  13. Widget? dialogTitle,
  14. ButtonSize? size,
  15. ButtonDensity? density,
  16. ButtonShape? shape,
  17. List<Widget> dialogActions(
    1. BuildContext context,
    2. ObjectFormHandler<T> handler
    )?,
  18. bool? enabled,
  19. bool decorate = true,
  20. bool? immediateValueChange,
})

Creates an ObjectFormField.

Implementation

const ObjectFormField({
  super.key,
  required this.value,
  this.onChanged,
  required this.placeholder,
  required this.builder,
  this.leading,
  this.trailing,
  this.mode = PromptMode.dialog,
  required this.editorBuilder,
  this.popoverAlignment,
  this.popoverAnchorAlignment,
  this.popoverPadding,
  this.dialogTitle,
  this.size,
  this.density,
  this.shape,
  this.dialogActions,
  this.enabled,
  this.decorate = true,
  this.immediateValueChange,
});