(key: string | SessionData, value?: AllowedSessionValues)
| 406 | flash(key: string, value: AllowedSessionValues): void |
| 407 | flash(keyValue: SessionData): void |
| 408 | flash(key: string | SessionData, value?: AllowedSessionValues): void { |
| 409 | if (typeof key === 'string') { |
| 410 | if (value && this.shouldFlashValue(value)) { |
| 411 | this.#getFlashStore('write').set(key, value) |
| 412 | } |
| 413 | } else { |
| 414 | this.#getFlashStore('write').merge(this.cleanupFlashData(key)) |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Flashes errors to the errorsBag. You can read these errors via the "@error" tag. |
no test coverage detected