length function

int length(
  1. TextRange range
)

Implementation

int length(TextRange range) {
  return range.end - range.start;
}