EditorTextSelectionOverlay constructor

EditorTextSelectionOverlay(
  1. TextEditingValue value,
  2. bool handlesVisible,
  3. BuildContext context,
  4. Widget debugRequiredFor,
  5. LayerLink toolbarLayerLink,
  6. LayerLink startHandleLayerLink,
  7. LayerLink endHandleLayerLink,
  8. RenderEditor? renderObject,
  9. TextSelectionControls selectionCtrls,
  10. TextSelectionDelegate selectionDelegate,
  11. DragStartBehavior dragStartBehavior,
  12. VoidCallback? onSelectionHandleTapped,
  13. ClipboardStatusNotifier clipboardStatus,
)

Implementation

EditorTextSelectionOverlay(
  this.value,
  this.handlesVisible,
  this.context,
  this.debugRequiredFor,
  this.toolbarLayerLink,
  this.startHandleLayerLink,
  this.endHandleLayerLink,
  this.renderObject,
  this.selectionCtrls,
  this.selectionDelegate,
  this.dragStartBehavior,
  this.onSelectionHandleTapped,
  this.clipboardStatus,
) {
  final overlay = Overlay.of(context, rootOverlay: true)!;

  _toolbarController = AnimationController(
      duration: const Duration(milliseconds: 150), vsync: overlay);
}