Dart API Reference
dart:html
Window
getSelection
getSelection
method
Returns the currently selected text.
@DomName('Window.getSelection')
@DocsEditable()
Selection
getSelection
( )
Returns the currently selected text.
Other resources
Window.getSelection
from MDN.