hover method

DVModifier hover(
  1. DVModifier whenHovered
)

What this box looks like while the pointer is over it.

whenHovered is layered on top rather than replacing: a hover state that says only "blue border" keeps the padding and radius the base modifier set. Pair it with animate so the change arrives rather than snaps.

Implementation

DVModifier hover(DVModifier whenHovered) =>
    _copyWith(hoverValue: whenHovered);