CupertinoActionSheetAction constructor

const CupertinoActionSheetAction({@required VoidCallback onPressed, bool isDefaultAction: false, bool isDestructiveAction: false, @required Widget child })

Creates an action for an iOS-style action sheet.

The child and onPressed arguments must not be null.

Implementation

const CupertinoActionSheetAction({
  @required this.onPressed,
  this.isDefaultAction = false,
  this.isDestructiveAction = false,
  @required this.child,
})  : assert(child != null),
      assert(onPressed != null);