copyWith method
DropdownMenuProps
copyWith({
- Widget? trigger,
- List<
ArcaneMenuItem> ? items, - bool? isOpen,
- void onToggle()?,
- void onClose()?,
- DropdownAlignment? alignment,
- double? width,
Implementation
DropdownMenuProps copyWith({
Widget? 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,
);
}