AdaptiveWidget.auto constructor
AdaptiveWidget.auto({})
Create an adaptive widget with an auto-generated ID
Implementation
factory AdaptiveWidget.auto({
Key? key,
required Widget child,
bool trackTaps = true,
bool trackLongPress = true,
bool trackHover = false,
bool trackFocus = false,
Function(InteractionEvent)? onInteraction,
BoxConstraints? constraints,
}) {
return AdaptiveWidget(
key: key,
id: const Uuid().v4(),
trackTaps: trackTaps,
trackLongPress: trackLongPress,
trackHover: trackHover,
trackFocus: trackFocus,
onInteraction: onInteraction,
constraints: constraints,
child: child,
);
}