TransformOnHover constructor

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

Transforms the given child to the given transform when hovered.

Implementation

const TransformOnHover({
  super.key,
  required this.duration,
  this.curve = Curves.linear,
  this.alignment = Alignment.center,
  required this.transform,
  required this.child,
  super.cursor = kDefaultHoverCursor,
  super.onTap,
});