copyWith method
FloatingProps
copyWith({
- String? id,
- Widget? trigger,
- Widget? content,
- String? textContent,
- bool? isOpen,
- FloatingTrigger? triggerType,
- FloatingPosition? position,
- void onOpenChange(
- bool isOpen
- void onToggle()?,
- void onMouseEnter()?,
- void onMouseLeave()?,
- bool? showArrow,
- int? offset,
- int? openDelay,
- int? closeDelay,
- double? maxWidth,
- bool? closeOnOutsideClick,
- bool? closeOnEscape,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
Implementation
FloatingProps copyWith({
String? id,
Widget? trigger,
Widget? content,
String? textContent,
bool? isOpen,
FloatingTrigger? triggerType,
FloatingPosition? position,
void Function(bool isOpen)? onOpenChange,
void Function()? onToggle,
void Function()? onMouseEnter,
void Function()? onMouseLeave,
bool? showArrow,
int? offset,
int? openDelay,
int? closeDelay,
double? maxWidth,
bool? closeOnOutsideClick,
bool? closeOnEscape,
ArcaneStyleData? styles,
ArcaneDecoration? decoration,
}) {
return FloatingProps(
id: id ?? this.id,
trigger: trigger ?? this.trigger,
content: content ?? this.content,
textContent: textContent ?? this.textContent,
isOpen: isOpen ?? this.isOpen,
triggerType: triggerType ?? this.triggerType,
position: position ?? this.position,
onOpenChange: onOpenChange ?? this.onOpenChange,
onToggle: onToggle ?? this.onToggle,
onMouseEnter: onMouseEnter ?? this.onMouseEnter,
onMouseLeave: onMouseLeave ?? this.onMouseLeave,
showArrow: showArrow ?? this.showArrow,
offset: offset ?? this.offset,
openDelay: openDelay ?? this.openDelay,
closeDelay: closeDelay ?? this.closeDelay,
maxWidth: maxWidth ?? this.maxWidth,
closeOnOutsideClick: closeOnOutsideClick ?? this.closeOnOutsideClick,
closeOnEscape: closeOnEscape ?? this.closeOnEscape,
styles: styles ?? this.styles,
decoration: decoration ?? this.decoration,
);
}