TextSelectionOverlay constructor

TextSelectionOverlay({@required TextEditingValue value, @required BuildContext context, Widget debugRequiredFor, @required LayerLink layerLink, @required RenderEditable renderObject, TextSelectionControls selectionControls, TextSelectionDelegate selectionDelegate })

Creates an object that manages overly entries for selection handles.

The context must not be null and must have an Overlay as an ancestor.

Implementation

TextSelectionOverlay({
  @required TextEditingValue value,
  @required this.context,
  this.debugRequiredFor,
  @required this.layerLink,
  @required this.renderObject,
  this.selectionControls,
  this.selectionDelegate,
}): assert(value != null),
    assert(context != null),
    _value = value {
  final OverlayState overlay = Overlay.of(context);
  assert(overlay != null);
  _handleController = AnimationController(duration: _fadeDuration, vsync: overlay);
  _toolbarController = AnimationController(duration: _fadeDuration, vsync: overlay);
}