driven property

Map<WidgetEvent, T?> get driven

Combines the default and custom event-to-widget mappings.

This getter returns a combined map containing both the default event-to-widget mappings (error, disabled, etc.) and any additional mappings defined in the custom map.

Implementation

Map<WidgetEvent, T?> get driven => {
      WidgetEvent.error: atError,
      WidgetEvent.disabled: atDisabled,
      WidgetEvent.loading: atLoading,
      WidgetEvent.dragged: atDragged,
      WidgetEvent.pressed: atPressed,
      WidgetEvent.hovered: atHovered,
      WidgetEvent.focused: atFocused,
      WidgetEvent.indeterminate: atIndeterminate,
      WidgetEvent.selected: atSelected,
    }..addAll(registry);