SmoothSelectionRegion constructor

const SmoothSelectionRegion({
  1. required Widget child,
  2. Key? key,
  3. FocusNode? focusNode,
  4. TextSelectionControls? selectionControls,
  5. TextMagnifierConfiguration? magnifierConfiguration,
  6. ValueChanged<SelectedContent?>? onSelectionChanged,
  7. SmoothSelectionContextMenuBuilder? contextMenuBuilder,
  8. SmoothSelectionController? controller,
})

Creates a SmoothSelectionRegion.

Mirrors SelectionArea.new, but contextMenuBuilder receives a SmoothSelectionRegionState instead of a plain SelectableRegionState.

Implementation

const SmoothSelectionRegion({
  required this.child,
  super.key,
  this.focusNode,
  this.selectionControls,
  this.magnifierConfiguration,
  this.onSelectionChanged,
  this.contextMenuBuilder,
  this.controller,
});