positionString static method
Returns a human readable string representing the position
index in a
buffer
.
Implementation
static String positionString(String buffer, int position) {
final lineAndColumn = lineAndColumnOf(buffer, position);
return '${lineAndColumn[0]}:${lineAndColumn[1]}';
}