LedgerToast class abstract final

A short confirmation over the page, as the source raises one (Moved to Groceries, Card number copied): the toast rising 12 clear of the tab bar on a tab's page (96 over its foot), 24 over the bottom edge elsewhere, 16 in from either side; at desktop width 380 wide at the window's bottom right, 32 in. It stays a few seconds, longer with its one inline act (Undo), and a new toast replaces the one still showing. Its time stops while a pointer rests on it or the keyboard is in it; F6 takes the keyboard to it, Escape dismisses it, and a screen reader hears it. The behaviour is ui_core's (DesignToaster), installed by LedgerHost (LedgerToaster); Ledger paints it.

LedgerToast.show(context, 'Moved to Groceries', actionLabel: 'Undo', onActionPressed: undo);

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

show(BuildContext context, String message, {IconData icon = LucideIcons.check, String? actionLabel, VoidCallback? onActionPressed}) → void
Shows message for a few seconds, replacing any toast still showing, its mark wearing icon (the check by default). actionLabel plus onActionPressed add ONE inline action; the card then lingers longer and a tap on the action dismisses it.