CNAlertAction<T> class
A single button in a CNAlert.
T is the type CNAlert.show reports when this action is selected.
Icons are intentionally absent
UIAlertAction exposes no public image property, so an icon field here
could never render on the native path. The setValue(_:forKey: "image")
workaround seen in the wild is KVC against an undeclared private property —
it risks App Store rejection and breaks silently across iOS releases.
- Annotations
Constructors
Properties
- enabled → bool
-
Whether the action can be selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCancel → bool
-
Marks the action as the cancel button.
final
- isDefault → bool
-
Marks the action as the preferred one.
final
- isDestructive → bool
-
Marks the action as destructive (e.g. "Delete", "Log out").
final
- label → String
-
The text shown on the button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
Reported as CNAlertResult.value when this action is selected.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited