FloatingProps constructor
const
FloatingProps({
- required Widget trigger,
- Widget? content,
- String? textContent,
- bool? isOpen,
- FloatingTrigger triggerType = FloatingTrigger.hover,
- FloatingPosition position = FloatingPosition.top,
- void onOpenChange(
- bool isOpen
- void onToggle()?,
- void onMouseEnter()?,
- void onMouseLeave()?,
- bool showArrow = true,
- int offset = 8,
- int openDelay = 0,
- int closeDelay = 0,
- double? maxWidth,
- bool closeOnOutsideClick = true,
- bool closeOnEscape = true,
Implementation
const FloatingProps({
required this.trigger,
this.content,
this.textContent,
this.isOpen,
this.triggerType = FloatingTrigger.hover,
this.position = FloatingPosition.top,
this.onOpenChange,
this.onToggle,
this.onMouseEnter,
this.onMouseLeave,
this.showArrow = true,
this.offset = 8,
this.openDelay = 0,
this.closeDelay = 0,
this.maxWidth,
this.closeOnOutsideClick = true,
this.closeOnEscape = true,
});