AdaptivePopupMenuItem<T> class

A selectable item in a popup menu

Inheritance

Constructors

AdaptivePopupMenuItem({required String label, String? subtitle, dynamic icon, Uint8List? imageBytes, bool enabled = true, bool isDestructive = false, bool selected = false, T? value})
Creates a selectable popup menu item
const

Properties

enabled → bool
Whether the item can be selected
final
hashCode → int
The hash code for this object.
no setterinherited
icon → dynamic
Optional icon (SF Symbol String for iOS 26+, IconData for iOS <26 and Android)
final
imageBytes → Uint8List?
Optional image bytes (e.g. an avatar) displayed as the item's image, clipped to a circle. Takes precedence over icon when both are set.
final
isDestructive → bool
If true, renders the item in red (destructive action styling)
final
label → String
Display label for the item
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
If true, marks the item as the currently selected one.
final
subtitle → String?
Optional subtitle displayed below the label
final
value → T?
Optional value of type T associated with this item
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