isDefault property

bool isDefault
final

Marks the action as the preferred one.

On iOS this becomes UIAlertController.preferredAction, which renders the label in a heavier weight. On the Flutter fallback it maps to CupertinoDialogAction.isDefaultAction.

At most one action in a call may set this — preferredAction holds a single reference, so a second one would silently win.

Implementation

final bool isDefault;