copyWith method

DropdownMenuProps copyWith({
  1. String? id,
  2. Widget? trigger,
  3. List<ArcaneMenuItem>? items,
  4. DropdownAlignment? alignment,
  5. double? width,
  6. bool? keepOpenOnAction,
  7. bool? initiallyOpen,
})

Implementation

DropdownMenuProps copyWith({
  String? id,
  Widget? trigger,
  List<ArcaneMenuItem>? items,
  DropdownAlignment? alignment,
  double? width,
  bool? keepOpenOnAction,
  bool? initiallyOpen,
}) {
  return DropdownMenuProps(
    id: id ?? this.id,
    trigger: trigger ?? this.trigger,
    items: items ?? this.items,
    alignment: alignment ?? this.alignment,
    width: width ?? this.width,
    keepOpenOnAction: keepOpenOnAction ?? this.keepOpenOnAction,
    initiallyOpen: initiallyOpen ?? this.initiallyOpen,
  );
}