NameField constructor

const NameField({
  1. Key? key,
  2. bool? enabled,
  3. FocusNode? focusNode,
  4. required String fieldHintText,
  5. required Key formFieldKey,
  6. TextEditingController? controller,
  7. OnChangedString? onChanged,
  8. String? formHintText,
  9. OnChangedString? onSubmitted,
  10. String? error,
})

Implementation

const NameField({
  Key? key,
  bool? enabled,
  FocusNode? focusNode,
  required this.fieldHintText,
  required this.formFieldKey,
  this.controller,
  this.onChanged,
  this.formHintText,
  this.onSubmitted,
  this.error,
})  : _focusNode = focusNode,
      enabled = enabled ?? true,
      super(key: key);