Fluent2FieldEditor constructor
const
Fluent2FieldEditor({
- required TextEditingController controller,
- required FocusNode focusNode,
- required TextStyle style,
- required bool enabled,
- String? hint,
- TextStyle? hintStyle,
- int? hintMaxLines,
- Object? groupId,
- bool readOnly = false,
- bool obscureText = false,
- bool autofocus = false,
- VoidCallback? onTap,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onEditingComplete,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - int? minLines,
- int? maxLines = 1,
- 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.',
);