copyWith method

DropdownMenuProps copyWith({
  1. Component? trigger,
  2. List<ArcaneMenuItem>? items,
  3. bool? isOpen,
  4. void onToggle()?,
  5. void onClose()?,
  6. DropdownAlignment? alignment,
  7. double? width,
})

Implementation

DropdownMenuProps copyWith({
  Component? trigger,
  List<ArcaneMenuItem>? items,
  bool? isOpen,
  void Function()? onToggle,
  void Function()? onClose,
  DropdownAlignment? alignment,
  double? width,
}) {
  return DropdownMenuProps(
    trigger: trigger ?? this.trigger,
    items: items ?? this.items,
    isOpen: isOpen ?? this.isOpen,
    onToggle: onToggle ?? this.onToggle,
    onClose: onClose ?? this.onClose,
    alignment: alignment ?? this.alignment,
    width: width ?? this.width,
  );
}