PressableOpacity constructor

const PressableOpacity({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onPressed,
  4. VoidCallback? onLongPressed,
  5. PressableOpacityTheme? theme = const PressableOpacityTheme(),
})

Implementation

const PressableOpacity({
  Key? key,
  required this.child,
  this.onPressed,
  this.onLongPressed,
  this.theme = const PressableOpacityTheme(),
}) : super(key: key);