getSelection method Null safety

Selection? getSelection()

Returns the currently selected text.

Other resources

Implementation

Selection? getSelection() native;