selectionEndpoints property

List<TextSelectionPoint> get selectionEndpoints

The text selection positions of selection start and end.

Implementation

List<TextSelectionPoint> get selectionEndpoints => _selectionEndpoints;
set selectionEndpoints (List<TextSelectionPoint> value)

Implementation

set selectionEndpoints(List<TextSelectionPoint> value) {
  if (!listEquals(_selectionEndpoints, value)) {
    markNeedsBuild();
    if (_isDraggingEndHandle || _isDraggingStartHandle) {
      switch (defaultTargetPlatform) {
        case TargetPlatform.android:
          HapticFeedback.selectionClick();
        case TargetPlatform.fuchsia:
        case TargetPlatform.iOS:
        case TargetPlatform.linux:
        case TargetPlatform.macOS:
        case TargetPlatform.windows:
          break;
      }
    }
  }
  _selectionEndpoints = value;
}