FormField<T> constructor
const
FormField<T> ({
- required FormKey<
T> key, - required Widget label,
- required Widget child,
- Widget? leadingLabel,
- Widget? trailingLabel,
- MainAxisAlignment? labelAxisAlignment = MainAxisAlignment.start,
- double? leadingGap,
- double? trailingGap,
- EdgeInsetsGeometry? padding = EdgeInsets.zero,
- Validator<
T> ? validator, - Widget? hint,
- 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,
});