Meta
| Type name | Supports Property Animations | Controlled by default | May contain associated action | Link |
|---|---|---|---|---|
| Meta | ✗ | ✔️ | ✗ | - |
InheritedWidget that stores json containing meta information for the Duit view.
info
The value stored by the widget can be used as a data source for actions.
The widget can be useful in cases:
- When it is necessary to transmit additional information about the UI element in the layout, which can be used during the execution of actions.
- When it is necessary to store an intermediate state
Usage
- Go
Meta(
&duit_attributes.MetaAttributes{
"key": "value",
"key2": "value2",
},
"id",
nil, //child
)