value property

Set<WidgetEvent> value
getter/setter pair

Managed set of active WidgetEvent values; designed to be passed to DrivenProperty.resolve methods.

To mutate and have notifyListeners called automatically for you, use emit, toggle, add, or remove. Directly mutating the set is possible, and may be necessary if you need to alter its list without calling notifyListeners (and thus triggering a re-render).

To check for a single condition, convenience getters isPressed, isHovered, isFocused, etc, are available for each WidgetEvent value.

Implementation

Set<WidgetEvent> value;