selection top-level property

dynamic get selection

A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection().

MDN Reference

Implementation

_i2.dynamic get selection => _i4.getProperty(
      _self,
      'Selection',
    );