updateLastSelectionEdgeLocation method

  1. @protected
void updateLastSelectionEdgeLocation({
  1. required Offset globalSelectionEdgeLocation,
  2. required bool forEnd,
})

Updates the last selection edge location of the edge specified by forEnd to the provided globalSelectionEdgeLocation.

Implementation

@protected
void updateLastSelectionEdgeLocation({
  required Offset globalSelectionEdgeLocation,
  required bool forEnd,
}) {
  if (forEnd) {
    _lastEndEdgeUpdateGlobalPosition = globalSelectionEdgeLocation;
  } else {
    _lastStartEdgeUpdateGlobalPosition = globalSelectionEdgeLocation;
  }
}