CNAlertAction class
Represents an action button in an alert.
Constructors
- CNAlertAction({required String title, CNAlertActionStyle style = CNAlertActionStyle.defaultStyle, VoidCallback? onPressed})
-
Creates an alert action.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onPressed → VoidCallback?
-
Callback when the button is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CNAlertActionStyle
-
The style of the button.
final
- title → String
-
The title displayed on the button.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the action to a map for platform channel communication.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited