listSelections method

Iterable<Span>? listSelections()

Retrieves a list of all current selections.

These will always be sorted, and never overlap (overlapping selections are merged). Each object in the array contains anchor and head properties referring to {line, ch} objects.

Implementation

Iterable<Span>? listSelections() {
  return call('listSelections')?.map((JsObject selection) {
    return Span.fromProxy(selection);
  });
}