ComicMenuItem<T> class

One option in an inked menu. Disabled options remain readable.

Annotations

Constructors

ComicMenuItem(T value, String label, {IconData? icon, bool enabled = true, bool selected = false})
Creates an option with the value returned when selected.
const

Properties

enabled → bool
Whether it can be selected.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
An optional leading glyph.
final
label → String
Its visible and spoken name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
Whether it is the current option.
final
value → T
The value returned to the caller.
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