BankQuickAction class

A single shortcut entry rendered by BankQuickActionsGrid.

Actions are identified by id, which is what the grid reports back through its reorder callback so the host application can persist the user's preferred order.

Annotations

Constructors

BankQuickAction({required String id, required String label, required IconData icon, required VoidCallback onTap, bool enabled = true, String? badgeText})
const

Properties

badgeText String?
Optional mini chip text drawn over the icon (e.g. 'New').
final
enabled bool
Whether the tile is interactive. Disabled tiles render at 40% opacity.
final
hashCode int
The hash code for this object.
no setteroverride
icon IconData
Icon shown inside the circular tile. Prefer entries from BankIcons.
final
id String
Stable identifier used for reorder persistence.
final
label String
Short label shown below the icon (one to two lines).
final
onTap VoidCallback
Invoked when the tile is tapped while enabled is true.
final
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
Note: onTap is compared by identity, so two otherwise identical actions with distinct closures are not equal.
override