getSelectionInRange method

  1. @override
Selection getSelectionInRange(
  1. Offset start,
  2. Offset end
)
override

Returns the Selection surrounded by start and end in current widget.

start and end are the offsets under the global coordinate system.

Implementation

@override
Selection getSelectionInRange(Offset start, Offset end) => Selection.single(
      path: widget.node.path,
      startOffset: 0,
      endOffset: 1,
    );