posFromIndex method
Calculates and returns a Position
object for a zero-based index who's
value is relative to the start of the editor's text. If the index is out of
range of the text then the returned object is clipped to start or end of
the text respectively.
Implementation
Position posFromIndex(int index) =>
Position.fromProxy(callArg('posFromIndex', index));