ActionMetadata class final

User-facing text and renderer lookup data for an action.

Constructors

ActionMetadata({required String label, String? subtitle, String? tooltip, ActionTooltipPolicy tooltipPolicy = const ActionTooltipPolicy.allowed(), String? semanticLabel, String? iconKey, bool isDestructive = false})
Creates the descriptive data shared by every renderer.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
iconKey → String?
The optional key a renderer uses to look up an icon.
final
isDestructive → bool
Whether invoking this action can cause irreversible loss.
final
label → String
The action's user-visible label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Optional accessibility label that overrides the visible menu text.
final
subtitle → String?
Optional supporting text shown below label in menu items.
final
tooltip → String?
Optional text shown on hover or long press by a renderer.
final
tooltipPolicy → ActionTooltipPolicy
Selects where this action shows its visual tooltip.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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