SelectableTextfield constructor

const SelectableTextfield(
  1. EditorDecoration editorDecoration,
  2. TextEditingController controller,
  3. FocusNode focusNode, {
  4. Key? key,
  5. int? maxLength,
  6. required bool autofocus,
  7. ScrollController? scrollController,
})

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

Implementation

const SelectableTextfield(
  this.editorDecoration,
  this.controller,
  this.focusNode, {
  Key? key,
  this.maxLength,
  required this.autofocus,
  this.scrollController,
}) : super(key: key);