SelectableTextfield constructor
const
SelectableTextfield(
- EditorDecoration editorDecoration,
- TextEditingController controller,
- FocusNode focusNode, {
- Key? key,
- int? maxLength,
- required bool autofocus,
initializes a new SelectableTextfield.
editorDecoration contains style information for the textfield to look
properly.
controller handles selection changes
focusNode is used to check if the field is focused or not
onSelectionChange is fired each time the selection changes to notify the
caller
Implementation
const SelectableTextfield(
this.editorDecoration,
this.controller,
// this.onSelectionChange,
this.focusNode, {
super.key,
this.maxLength,
required this.autofocus,
});