onHoverEnter method
Line will be wider after mouse enter. 对被鼠标浮入的线增加显视宽度
Implementation
@override
void onHoverEnter() {
if (graph.hoverVertex != null) return;
paint.strokeWidth = 4;
hitBox?.width = 4;
gameRef.graph.hoverEdge = edge;
Future.delayed(panelDelay, () {
if (isHovered) {
gameRef.overlays.add(overlayName);
}
});
}