DrivenChild<T extends Widget?> constructor

const DrivenChild<T extends Widget?>(
  1. T atEnabled, {
  2. T? atError,
  3. T? atDisabled,
  4. T? atLoading,
  5. T? atDragged,
  6. T? atPressed,
  7. T? atHovered,
  8. T? atFocused,
  9. T? atIndeterminate,
  10. T? atSelected,
  11. Map<WidgetEvent, T?> registry = const {},
  12. Key? key,
})

Creates a DrivenChild with the provided enabled widget and optional widgets for various event states.

The enabled widget is displayed when none of the other event states match. You can also provide specific widgets for events like error, disabled, loading, etc.

Implementation

const DrivenChild(
  this.atEnabled, {
  this.atError,
  this.atDisabled,
  this.atLoading,
  this.atDragged,
  this.atPressed,
  this.atHovered,
  this.atFocused,
  this.atIndeterminate,
  this.atSelected,
  this.registry = const {},
  super.key,
});