FormFieldWrapper<T> constructor

const FormFieldWrapper<T>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required Widget to(
    1. BuildContext context,
    2. T value,
    3. void onChanged(
      1. T
      )
    ),
  4. String? validator(
    1. T value
    )?,
  5. String? label,
  6. FormAnimationEffect errorEffect = FormAnimationEffect.shakeFade,
  7. Duration animationDuration = const Duration(milliseconds: 300),
})

Implementation

const FormFieldWrapper({
  super.key,
  required this.connect,
  required this.to,
  this.validator,
  this.label,
  this.errorEffect = FormAnimationEffect.shakeFade,
  this.animationDuration = const Duration(milliseconds: 300),
});