HoverCardTheme constructor

const HoverCardTheme({
  1. Duration? debounce,
  2. Duration? wait,
  3. AlignmentGeometry? popoverAlignment,
  4. AlignmentGeometry? anchorAlignment,
  5. Offset? popoverOffset,
  6. HitTestBehavior? behavior,
})

Creates a HoverCardTheme.

All parameters are optional and will use system defaults when null.

Parameters:

  • debounce (Duration?, optional): delay before hiding after mouse exit
  • wait (Duration?, optional): delay before showing after mouse enter
  • popoverAlignment (AlignmentGeometry?, optional): popover alignment
  • anchorAlignment (AlignmentGeometry?, optional): anchor point alignment
  • popoverOffset (Offset?, optional): offset from calculated position
  • behavior (HitTestBehavior?, optional): mouse interaction behavior

Example:

const HoverCardTheme(
  debounce: Duration(milliseconds: 200),
  wait: Duration(milliseconds: 600),
  popoverAlignment: Alignment.bottomCenter,
)

Implementation

const HoverCardTheme({
  this.debounce,
  this.wait,
  this.popoverAlignment,
  this.anchorAlignment,
  this.popoverOffset,
  this.behavior,
});