getAllMarks method

List<TextMarker> getAllMarks()

Returns an array containing all marked ranges in the document.

Implementation

List<TextMarker> getAllMarks() {
  var result = call('getAllMarks');
  if (result is! List) return [];
  return List.of(result.map((mark) => TextMarker(mark)));
}