DrivenChild<T extends Widget?>.all constructor
const
DrivenChild<T extends Widget?>.all (
- T atEnabled, {
- Key? key,
Creates a DrivenChild
with the provided enabled
widget for all states.
This constructor simplifies creating a DrivenChild
where the same widget
is displayed for all event states.
Implementation
const DrivenChild.all(this.atEnabled, {super.key})
: atError = null,
atDisabled = null,
atLoading = null,
atDragged = null,
atPressed = null,
atHovered = null,
atFocused = null,
atIndeterminate = null,
atSelected = null,
registry = const {};