Selection getSelection( )

Returns the currently selected text.

Other resources

Source

/**
 * Returns the currently selected text.
 *
 * ## Other resources
 *
 * * [Window.getSelection]
 * (https://developer.mozilla.org/en-US/docs/Web/API/Window.getSelection)
 * from MDN.
 */
@DomName('Window.getSelection')
@DocsEditable()
Selection getSelection() => wrap_jso(_blink.BlinkWindow.instance.getSelection_Callback_0_(unwrap_jso(this)));