TKeyValue class

Represents a single key-value item in a TKeyValueSection.

Constructors

TKeyValue(String key, {String? value, Widget? widget, double? width})
Creates a key-value item.
TKeyValue.text(String key, String? value)
Creates a key-value item with text value.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The label/key text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String?
The value text.
final
widget Widget?
Custom widget to display instead of text value.
final
width double?
Optional fixed width for the column.
final

Methods

estimateColumnWidth(double availableWidth, TKeyValueTheme theme) double
Estimates the width of the column based on content and theme.
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

mapHeaders<T, K>(BuildContext ctx, List<TTableHeader<T, K>> headers, TListItem<T, K> item, int index) List<TKeyValue>
Maps table headers to key-value items for list view representation.