SelectableTextfield constructor

const SelectableTextfield(
  1. EditorDecoration editorDecoration,
  2. TextEditingController controller,
  3. FocusNode focusNode, {
  4. Key? key,
  5. int? maxLength,
  6. 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,
});