CPAlertAction class
An object that encapsulates an action the user can take on CPActionSheetTemplate or CPAlertTemplate.
Constructors
- CPAlertAction({required String title, CPAlertActionStyles style = CPAlertActionStyles.normal, required dynamic onPress()})
- Creates CPAlertAction with a title, style, and action handler.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onPress → dynamic Function()
-
A callback function that CarPlay invokes after the user taps the action button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → CPAlertActionStyles
-
The display style for the action button.
Default is CPAlertActionStyles.normal
final
- title → String
-
The action button's title.
final
- uniqueId → String
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited