getBaseEndpointForSelection method

  1. @override
TextSelectionPoint getBaseEndpointForSelection(
  1. TextSelection textSelection
)
override

Returns a list of rects that bound the given selection.

A given selection might have more than one rect if this text painter contains bidirectional text because logically contiguous text might not be visually contiguous.

Valid only after layout. Returns a point for the base selection handle used on touch-oriented devices.

The selection parameter is expected to be in local offsets to this render object's node.

Implementation

@override
TextSelectionPoint getBaseEndpointForSelection(TextSelection textSelection) {
  return _getEndpointForSelection(textSelection, true);
}