FormField<T> constructor

const FormField<T>({
  1. required FormKey<T> key,
  2. required Widget label,
  3. required Widget child,
  4. Widget? leadingLabel,
  5. Widget? trailingLabel,
  6. MainAxisAlignment? labelAxisAlignment = MainAxisAlignment.start,
  7. double? leadingGap,
  8. double? trailingGap,
  9. EdgeInsetsGeometry? padding = EdgeInsets.zero,
  10. Validator<T>? validator,
  11. Widget? hint,
  12. Set<FormValidationMode>? showErrors,
})

Creates a form field.

Implementation

const FormField({
  required FormKey<T> super.key,
  required this.label,
  required this.child,
  this.leadingLabel,
  this.trailingLabel,
  this.labelAxisAlignment = MainAxisAlignment.start,
  this.leadingGap,
  this.trailingGap,
  this.padding = EdgeInsets.zero,
  this.validator,
  this.hint,
  this.showErrors,
});