ExpandableTableRow class
ExpandableTableRow class. This class defines a single table row.
- Inheritance
-
- Object
- ChangeNotifier
- ExpandableTableRow
Constructors
-
ExpandableTableRow({required ExpandableTableCell firstCell, List<
ExpandableTableCell> ? cells, Widget? legend, List<ExpandableTableRow> ? children, double? height, bool hideWhenExpanded = false, bool childrenExpanded = false, bool disableDefaultOnTapExpansion = false}) - ExpandableTableRow class constructor. This class defines a single table row.
Properties
-
address
→ List<
int> -
address returns a list of integers, each of which the position
referred to the parent row, each nesting adds an element to the
list, this element will be the address of the row with respect to the parent.
no setter
-
cells
→ List<
ExpandableTableCell> ? -
cells defines the cells in the row, excluding the first one on the left.
The length of this list must be identical to the total headers, including nested ones.
optional, if it is not defined, the legend must be defined
final - cellsCount → int?
-
cellsCount returns the number of cells in the row, excluding the first.
no setter
-
children
↔ List<
ExpandableTableRow> ? -
children returns nested rows to this one.
getter/setter pair
- childrenExpanded ↔ bool
-
childrenExpanded returns true if the children nested to this row have been expanded.
getter/setter pair
- disableDefaultOnTapExpansion → bool
-
disableDefaultOnTapExpansion Defines whether to disable the
standard expand interaction, setting to true will require
manually implementing an expand logic.
Default: false
final - firstCell → ExpandableTableCell
-
firstCell defines the contents of the first cell, this cell
is the cell that remains fixed during horizontal scrolling..
required
final - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- height → double?
-
height defines the height of the row, if not specified
the default height defined in the table will be used.
optional
final - hideWhenExpanded → bool
-
hideWhenExpanded Defines whether this row should be
hidden when nested rows are expanded. Attention, by setting
this property to true it will be necessary to implement manual
management of column expansion.
Default: false
final - index ↔ int?
-
index indicates the current index of this row, referring to the parent.
getter/setter pair
- legend → Widget?
-
legend defines the object to insert in place of the cells of the row, used to
create separation or display of totals for example.
optional, if it is not defined, the [cells] must be defined
final - parent → ExpandableTableRow?
-
parent if this row is nested within another,
the instance of the parent row is returned
no setter
- rowsCount → int
-
rowsCount returns the number of rows, this one and
all those nested within it.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible → bool
-
visible returns true if this row is currently visible.
no setter
- visibleRowsCount → int
-
visibleRowsCount returns the number of rows currently visible,
this one and all those nested within it.
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toggleExpand(
) → void - toggleExpand this method allows you to reverse the expansion or not of the child rows.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited