TableAction<T extends Object> class

Action available on a table row.

Two display modes:

  • Popup (default inline: false): rendered inside the 3-dot menu. Provide content (typically a TableActionItem(name, iconData)).
  • Inline (inline: true): rendered directly in the row as a compact CLOutlineButton. Provide label and optional icon (LucideIcons) + optional color for tonal variant (e.g. theme.danger for "Elimina"). The content field is unused in inline mode.

Constructors

TableAction({required Widget content, required void onTap(T), bool inline = false, String? label, IconData? icon, Color? color})

Properties

color Color?
Inline button tonal color (used when inline is true). Defaults to theme.primary.
final
content Widget
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Inline button icon (used when inline is true).
final
inline bool
When true, this action renders as a compact CLOutlineButton directly inline in the row, before the 3-dot popup menu.
final
label String?
Inline button label (used when inline 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
onTap(Object item) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited