const TextRange.collapsed(int offset)

A text range that starts and ends at offset.

Source

const TextRange.collapsed(int offset)
  : start = offset,
    end = offset;