public function flash(string $name, $value): void
        {
            if ($this->has($name)) {
                $this->remove($name);
            } else {
                $this->set($name, $value);
            }
        }