Pressable.scale constructor

Pressable.scale({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onPressed,
  4. VoidCallback? onLongPressed,
  5. 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,
  );
}