TableExpandable<T> class

Opening a row to show more under it.

A column of chevrons goes in front of the others, and the row that is opened has a panel of your own drawing under it, across the whole table.

Table<User>(
  expandable: TableExpandable(builder: (context, user, i) => Text(user.bio)),
  columns: columns,
  data: users,
)

A row is itself, not a key — as with TableSelection.

Annotations

Constructors

TableExpandable({Widget builder(BuildContext context, T record, int index)?, List<T>? children(T record)?, double? indentSize, List<T>? expanded, List<T>? defaultExpanded, ValueChanged<List<T>>? onChanged, bool expandable(T record)?, bool byRowTap = false, double? panelHeight, bool showColumn = true, double? columnWidth, TableColumnFixed? fixed})
Creates a TableExpandable.
const

Properties

builder → Widget Function(BuildContext context, T record, int index)?
What is drawn under an opened row.
final
byRowTap → bool
Whether a tap anywhere on the row opens it, as well as the chevron.
final
children → List<T>? Function(T record)?
The rows standing under a row, where the data is a tree.
final
columnWidth → double?
How wide that column is.
final
defaultExpanded → List<T>?
The rows standing open to begin with (uncontrolled).
final
expandable → bool Function(T record)?
Which rows can be opened at all. Every row, where nothing is said.
final
expanded → List<T>?
The rows standing open (controlled).
final
fixed → TableColumnFixed?
Pins it, as any other column is pinned.
final
hashCode → int
The hash code for this object.
no setterinherited
indentSize → double?
How far each step down the tree is indented, in pixels.
final
onChanged → ValueChanged<List<T>>?
Called with the rows standing open, whenever that changes.
final
panelHeight → double?
How tall an opened panel is, where you can say.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showColumn → bool
Whether the chevrons get a column of their own.
final

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