DrivenChild<T extends Widget?> constructor
const
DrivenChild<T extends Widget?> (
- T atEnabled, {
- T? atError,
- T? atDisabled,
- T? atLoading,
- T? atDragged,
- T? atPressed,
- T? atHovered,
- T? atFocused,
- T? atIndeterminate,
- T? atSelected,
- Map<
WidgetEvent, T?> registry = const {}, - 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,
});