LedgerMenuItem class

One item of a LedgerMenu: its label, an amount at its end, and whether it is the one selected (checked, on the paper, semibold).

LedgerMenuItem('October 2026', amount: 2486.12, selected: true, onTap: () {})
LedgerMenuItem('October 2026', key: const ValueKey('keep-month'), selected: true, onTap: () {})

Constructors

LedgerMenuItem(String label, {num? amount, bool selected = false, VoidCallback? onTap, Key? key})
An item worded label, with an optional amount.
const

Properties

amount → num?
An amount at the item's end, in the mono.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
The item's own key (its press target).
final
label → String
The item's words.
final
onTap → VoidCallback?
What choosing it does; null leaves it inert.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
Whether this is the chosen 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