FormField<T> constructor

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

Creates a FormField with common properties.

Implementation

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