Miscellaneous
flash()
Signature
Section titled “Signature”flash() — returns any
Description
Section titled “Description”Returns the value of a specific key in the Flash (or the entire Flash as a struct if no key is passed in).
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | yes | — | The key to get the value for. |
Examples
Section titled “Examples”// Get the current value of notice in the Flash
notice = flash("notice");
// Get the entire Flash as a struct
flashContents = flash();