FormField<T> constructor

FormField<T>({
  1. Key? key,
  2. required String label,
  3. String description = '',
  4. T? initialValue,
  5. String? validator(
    1. T?
    )?,
  6. FocusNode? focusNode,
  7. bool focused = false,
})

Creates a FormField with common properties.

Implementation

FormField({
  super.key,
  required this.label,
  this.description = '',
  this.initialValue,
  this.validator,
  this.focusNode,
  bool focused = false,
}) : value = initialValue,
     _focused = focused;