AttributeFormField<T extends Object>.forInitialValueGetter constructor

AttributeFormField<T extends Object>.forInitialValueGetter({
  1. Key? key,
  2. dynamic label,
  3. dynamic placeholder,
  4. dynamic attribute,
  5. InputDecoration? decoration,
  6. FormController? form,
  7. Getter<T>? initialValue,
  8. FormValueChanged<T?>? onChange,
  9. required bool isRequired,
  10. SunnyFormFieldBuilder<T?>? builder,
  11. bool? isReadOnly,
  12. bool captureNestedPaths = true,
  13. bool? enabled,
  14. AttributeAccepter<T?>? onReadOnlyTapped,
  15. FieldConverter<T?>? converter,
  16. 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,
      );