in this function
public function rectangleOptions(Closure|array $rectangleOptions): static
{
$this->recatangleOptions = $rectangleOptions;
return $this;
}
there was a mistake in $this->recatangleOptions name the correct name is $this->rectangleOptions
in this function public function rectangleOptions(Closure|array $rectangleOptions): static { $this->recatangleOptions = $rectangleOptions; return $this; } there was a mistake in $this->recatangleOptions name the correct name is $this->rectangleOptions