OffsetOnHover constructor
- Key? key,
- required Duration duration,
- Curve curve = Curves.linear,
- Alignment alignment = Alignment.center,
- required Offset offset,
- required Widget child,
- MouseCursor cursor = kDefaultHoverCursor,
- VoidCallback? onTap,
Offsets the given child
to the given offset
when hovered.
Implementation
const OffsetOnHover({
super.key,
required this.duration,
this.curve = Curves.linear,
this.alignment = Alignment.center,
required this.offset,
required this.child,
super.cursor = kDefaultHoverCursor,
super.onTap,
});