CupertinoActionSheetActionModifier constructor

const CupertinoActionSheetActionModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required VoidCallback onPressed,
  5. bool isDefaultAction = false,
  6. bool isDestructiveAction = false,
})

Creates an action for an iOS-style action sheet.

The child and onPressed arguments must not be null.

Implementation

const CupertinoActionSheetActionModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.onPressed,
  this.isDefaultAction = false,
  this.isDestructiveAction = false,
});