getSelection method

String? getSelection([
  1. String? lineSep
])

Get the currently selected code. Optionally pass a line separator to put between the lines in the output. When multiple selections are present, they are concatenated with instances of lineSep in between.

Implementation

String? getSelection([String? lineSep]) => callArg('getSelection', lineSep);