Fluent2FieldEditor constructor

const Fluent2FieldEditor({
  1. required TextEditingController controller,
  2. required FocusNode focusNode,
  3. required TextStyle style,
  4. required bool enabled,
  5. String? hint,
  6. TextStyle? hintStyle,
  7. int? hintMaxLines,
  8. Object? groupId,
  9. bool readOnly = false,
  10. bool obscureText = false,
  11. bool autofocus = false,
  12. VoidCallback? onTap,
  13. ValueChanged<String>? onChanged,
  14. ValueChanged<String>? onSubmitted,
  15. VoidCallback? onEditingComplete,
  16. TextInputType? keyboardType,
  17. TextInputAction? textInputAction,
  18. List<TextInputFormatter>? inputFormatters,
  19. int? minLines,
  20. int? maxLines = 1,
  21. Key? key,
})

An editor of controller's words in style.

Implementation

const Fluent2FieldEditor({
  required this.controller,
  required this.focusNode,
  required this.style,
  required this.enabled,
  this.hint,
  this.hintStyle,
  this.hintMaxLines,
  this.groupId,
  this.readOnly = false,
  this.obscureText = false,
  this.autofocus = false,
  this.onTap,
  this.onChanged,
  this.onSubmitted,
  this.onEditingComplete,
  this.keyboardType,
  this.textInputAction,
  this.inputFormatters,
  this.minLines,
  this.maxLines = 1,
  super.key,
}) : assert(
       onSubmitted == null || onEditingComplete == null,
       'An editor takes Enter in onSubmitted (it gives up the focus) or in '
       'onEditingComplete (it keeps it), never both.',
     );