copyWith method

DropdownMenuPosition copyWith({
  1. Alignment? targetAnchor,
  2. Alignment? anchor,
  3. Offset? offset,
})

Implementation

DropdownMenuPosition copyWith({
  Alignment? targetAnchor,
  Alignment? anchor,
  Offset? offset,
}) {
  return DropdownMenuPosition(
    targetAnchor: targetAnchor ?? this.targetAnchor,
    anchor: anchor ?? this.anchor,
    offset: offset ?? this.offset,
  );
}