getSelection method

  1. @DomName('Window.getSelection')
  2. @DocsEditable()
Selection getSelection()

Returns the currently selected text.

Other resources

Source

@DomName('Window.getSelection')
@DocsEditable()
Selection getSelection() =>
    _blink.BlinkWindow.instance.getSelection_Callback_0_(this);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Window/getSelection.html