Properties
Each item in
values should contain:
key: The state key to setvalue: The value to assign
Example
- Dart
- JSON
- Preview
Initializing State on Screen Load
UseStacSetValue to initialize state when a screen loads:
Reading State Values
After setting values withStacSetValue, you can read them using placeholder syntax {{key}}:
For action-based state updates (e.g., on button press), see StacSetValueAction.