TextRange.collapsed constructor Null safety
- int offset
A text range that starts and ends at offset.
The offset
argument must be non-null and greater than or equal to -1.
Implementation
const TextRange.collapsed(int offset)
: assert(offset != null && offset >= -1),
start = offset,
end = offset;