CNAlertAction class

iOS-specific alert action (internal use only)

This class is used internally for iOS native implementation. External code should use BaseAlertAction instead.

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