AttributeFormField<T extends Object>.forInitialValueGetter constructor
AttributeFormField<T extends Object>.forInitialValueGetter ({
- Key? key,
- dynamic label,
- dynamic placeholder,
- dynamic attribute,
- InputDecoration? decoration,
- FormController? form,
- Getter<
T> ? initialValue, - FormValueChanged<
T?> ? onChange, - required bool isRequired,
- SunnyFormFieldBuilder<
T?> ? builder, - bool? isReadOnly,
- bool captureNestedPaths = true,
- bool? enabled,
- AttributeAccepter<
T?> ? onReadOnlyTapped, - FieldConverter<
T?> ? converter, - FocusNode? focusNode,
Implementation
AttributeFormField.forInitialValueGetter({
Key? key,
dynamic label,
dynamic placeholder,
dynamic attribute,
InputDecoration? decoration,
FormController? form,
Getter<T>? initialValue,
FormValueChanged<T?>? onChange,
required bool isRequired,
/// This builder should only build the raw input, without any extra stuff, like errors, help text,
/// labels, or otherwise. By default, a basic text field will be created
SunnyFormFieldBuilder<T?>? builder,
bool? isReadOnly,
bool captureNestedPaths = true,
bool? enabled,
AttributeAccepter<T?>? onReadOnlyTapped,
FieldConverter<T?>? converter,
FocusNode? focusNode,
}) : super(
key: key,
label: label,
placeholder: placeholder,
attribute: attribute,
builder: builder,
isRequired: isRequired,
isReadOnly: isReadOnly,
form: form,
enabled: enabled,
decoration: decoration,
captureNestedPaths: captureNestedPaths,
onReadOnlyTapped: onReadOnlyTapped,
initialValue: initialValue?.call(),
converter: converter,
focusNode: focusNode,
onChange: onChange,
);