DocumentRange constructor

const DocumentRange({
  1. required DocumentPosition start,
  2. required DocumentPosition end,
})

Creates a document range from its start and end positions.

The start position must come before the end position in the document.

Implementation

const DocumentRange({
  required this.start,
  required this.end,
});