pushHandleLayers method

  1. @override
void pushHandleLayers(
  1. LayerLink? startHandle,
  2. LayerLink? endHandle
)
override

Marks this handler to be responsible for pushing LeaderLayers for the selection handles.

This handler is responsible for pushing the leader layers with the given layer links if they are not null. It is possible that only one layer is non-null if this handler is only responsible for pushing one layer link.

The startHandle needs to be placed at the visual location of selection start, the endHandle needs to be placed at the visual location of selection end. Typically, the visual locations should be the same as SelectionGeometry.startSelectionPoint and SelectionGeometry.endSelectionPoint.

Implementation

@override
void pushHandleLayers(LayerLink? startHandle, LayerLink? endHandle) {
  if (_startHandleLayer == startHandle && _endHandleLayer == endHandle) {
    return;
  }
  _startHandleLayer = startHandle;
  _endHandleLayer = endHandle;
  _updateHandleLayersAndOwners();
}