fuseHoverUpdate function

void fuseHoverUpdate(
  1. FuseHoverUpdateFn fn
)

Calls fn while hovering over this component.

Implementation

void fuseHoverUpdate(FuseHoverUpdateFn fn) {
  var enabled = false;
  fuseHoverEnter(() => enabled = true);
  fuseHoverExit(() => enabled = false);
  fuseUpdate((dt) {
    if (enabled) {
      fn(dt);
    }
  });
}