getRange method

String? getRange(
  1. Position from,
  2. Position to, [
  3. String? separator
])

Get the text between the given points in the editor. An optional third argument can be given to indicate the line separator string to use (defaults to "\n").

Implementation

String? getRange(Position from, Position to, [String? separator]) {
  return callArgs('getRange', [from.toProxy(), to.toProxy(), separator]);
}