SelectableRegion constructor

const SelectableRegion({
  1. Key? key,
  2. SelectableRegionContextMenuBuilder? contextMenuBuilder,
  3. required FocusNode focusNode,
  4. required TextSelectionControls selectionControls,
  5. required Widget child,
  6. TextMagnifierConfiguration magnifierConfiguration = TextMagnifierConfiguration.disabled,
  7. ValueChanged<SelectedContent?>? onSelectionChanged,
})

Create a new SelectableRegion widget.

The selectionControls are used for building the selection handles and toolbar for mobile devices.

Implementation

const SelectableRegion({
  super.key,
  this.contextMenuBuilder,
  required this.focusNode,
  required this.selectionControls,
  required this.child,
  this.magnifierConfiguration = TextMagnifierConfiguration.disabled,
  this.onSelectionChanged,
});