TTableMobileCard<T, K> class

A card representation of a table row for mobile views.

TTableMobileCard transforms a table row into a self-contained card displaying key-value pairs. It supports:

  • Expandable details
  • Selection checkbox
  • Custom styling
Inheritance

Constructors

TTableMobileCard({Key? key, required int index, required TListItem<T, K> item, required List<TTableHeader<T, K>> headers, TTableMobileCardTheme theme = const TTableMobileCardTheme(), double? width, bool expandable = false, bool isExpanded = false, VoidCallback? onExpansionChanged, Widget? expandedContent, bool selectable = false, bool isSelected = false, VoidCallback? onSelectionChanged})
Creates a mobile table card.
const

Properties

expandable bool
Whether the card is expandable.
final
expandedContent Widget?
Content to show when expanded.
final
hashCode int
The hash code for this object.
no setterinherited
headers List<TTableHeader<T, K>>
The table headers definitions.
final
index int
The index of the item.
final
isExpanded bool
Whether the card is currently expanded.
final
isSelected bool
Whether the card is selected.
final
item TListItem<T, K>
The list item data.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onExpansionChanged VoidCallback?
Callback when expansion toggles.
final
onSelectionChanged VoidCallback?
Callback when selection toggles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectable bool
Whether the card is selectable.
final
theme TTableMobileCardTheme
Theme for the mobile card.
final
width double?
Optional fixed width.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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