ActionSheetItem class

An action sheet item with icon, label, color and optional trailing.

Constructors

ActionSheetItem({required String label, IconData? icon, Color? color, Widget? trailing, bool destructive = false, bool enabled = true})
const

Properties

color → Color?
Icon/label color.
final
destructive → bool
Whether the action is destructive.
final
enabled → bool
Whether the action is enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Leading icon.
final
label → String
Item label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trailing → Widget?
Trailing widget.
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