BaseActionSheetAction class

Represents a single action in an action sheet (cross-platform data model)

This is the primary class to use when creating action sheet actions. It will be automatically converted to platform-specific implementations:

  • iOS/macOS: Native UIAlertController actions via platform channels
  • Android/Other: Material Design ListTile in bottom sheet

Constructors

BaseActionSheetAction({required String title, BaseActionSheetActionStyle style = BaseActionSheetActionStyle.defaultStyle, VoidCallback? onPressed})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
onPressed → VoidCallback?
Callback when the action is tapped
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → BaseActionSheetActionStyle
The style of the action
final
title → String
The title of the action
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCNActionSheetAction() → CNActionSheetAction
Converts to CNActionSheetAction for iOS native implementation
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited