OffsetOnHover constructor

const OffsetOnHover(
  1. {Key? key,
  2. required Duration duration,
  3. Curve curve = Curves.linear,
  4. Alignment alignment = Alignment.center,
  5. required Offset offset,
  6. required Widget child,
  7. MouseCursor cursor = kDefaultHoverCursor,
  8. VoidCallback? onTap}
)

Offsets the given child to the given offset when hovered.

Implementation

const OffsetOnHover