isDestructive property

bool isDestructive
final

Marks the action as destructive (e.g. "Delete", "Log out").

On iOS this maps to UIAlertAction.Style.destructive, which renders the label in the system destructive red. On the Flutter fallback it maps to CupertinoActionSheetAction.isDestructiveAction.

Apple's Human Interface Guidelines place destructive choices at the top of the sheet. This API preserves the order you pass — reordering the list would silently break the mapping from index to value — so put the destructive action first yourself.

Implementation

final bool isDestructive;