onHoverExit method

  1. @override
void onHoverExit()

Change the line to its original width ater mouse exists. 当鼠标浮出时,将线变回原来的宽度。

Implementation

@override
void onHoverExit() {
  paint.strokeWidth = 1;
  hitBox?.width = 1;
  gameRef.graph.hoverEdge = null;
  if (hasPanel) {
    Future.delayed(panelDelay, () {
      gameRef.overlays.remove(overlayName);
    });
  }
}