ChartContextAction class

One typed native chart context-menu command.

Annotations

Constructors

ChartContextAction({required String id, required String label, required FutureOr<void> onSelected(), IconData? icon, bool enabled = true, ChartContextActionSection section = ChartContextActionSection.host, String? shortcutLabel, String? semanticLabel})
const

Properties

enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
final
id String
Stable ID unique within the effective menu.
final
label String
final
onSelected FutureOr<void> Function()
Invoked only after the chart interaction coordinator has been released.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
section ChartContextActionSection
final
semanticLabel String?
Optional assistive label when label alone is insufficient.
final
shortcutLabel String?
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