offIcon = $icon; return $this; } public function onIcon(string | Closure | null $icon): static { $this->onIcon = $icon; return $this; } public function getOffIcon(): ?string { return $this->evaluate($this->offIcon); } public function getOnIcon(): ?string { return $this->evaluate($this->onIcon); } public function hasOffIcon(): bool { return (bool) $this->getOffIcon(); } public function hasOnIcon(): bool { return (bool) $this->getOnIcon(); } }