findMarks method

List<TextMarker> findMarks(
  1. Position from,
  2. Position to
)

Returns an array of all the bookmarks and marked ranges found between the given positions.

Implementation

List<TextMarker> findMarks(Position from, Position to) {
  var result = callArgs('findMarks', [from.toProxy(), to.toProxy()]);
  if (result is! List) return [];
  return List.of(result.map((mark) => TextMarker(mark)));
}