Pressable.scale constructor
Pressable.scale({
- Key? key,
- required Widget child,
- VoidCallback? onPressed,
- VoidCallback? onLongPressed,
- PressableScaleTheme? theme,
Scales the child
to PressableScaleTheme.scaleFactor when tapped.
Implementation
factory Pressable.scale({
Key? key,
required Widget child,
VoidCallback? onPressed,
VoidCallback? onLongPressed,
PressableScaleTheme? theme,
}) {
return PressableScale(
key: key,
onPressed: onPressed,
onLongPressed: onLongPressed,
theme: theme,
child: child,
);
}