Hover constructor

const Hover({
  1. Key? key,
  2. required Widget child,
  3. required void onHover(
    1. bool hovered
    ),
  4. Duration waitDuration = const Duration(milliseconds: 500),
  5. Duration minDuration = const Duration(milliseconds: 0),
  6. Duration showDuration = const Duration(milliseconds: 200),
  7. HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild,
})

Implementation

const Hover({
  super.key,
  required this.child,
  required this.onHover,
  this.waitDuration = const Duration(milliseconds: 500),
  this.minDuration = const Duration(milliseconds: 0),
  this.showDuration = const Duration(milliseconds: 200),
  this.hitTestBehavior = HitTestBehavior.deferToChild,
});