[]
Gets or sets the function that is called to update the state of the toolbar item.
[JsonIgnore]
public Action OnUpdate { get; set; }
The OnUpdate
property allows you to specify a function that updates the state of the toolbar item, typically used for dynamic state changes.