ObjectFormField<T> constructor
const
ObjectFormField<T> ({
- Key? key,
- required T? value,
- ValueChanged<
T?> ? onChanged, - required Widget placeholder,
- required Widget builder(
- BuildContext context,
- T value
- Widget? leading,
- Widget? trailing,
- PromptMode mode = PromptMode.dialog,
- required Widget editorBuilder(
- BuildContext context,
- ObjectFormHandler<
T> handler
- Alignment? popoverAlignment,
- Alignment? popoverAnchorAlignment,
- EdgeInsets? popoverPadding,
- Widget? dialogTitle,
- ButtonSize size = ButtonSize.normal,
- ButtonDensity density = ButtonDensity.normal,
- ButtonShape shape = ButtonShape.rectangle,
- List<
Widget> dialogActions(- BuildContext context,
- ObjectFormHandler<
T> handler
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 = ButtonSize.normal,
this.density = ButtonDensity.normal,
this.shape = ButtonShape.rectangle,
this.dialogActions,
});