ExpandableDataTable class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExpandableDataTable
Constructors
-
ExpandableDataTable({Key? key, required List<
ExpandableColumn> headers, required List<ExpandableRow> rows, required int visibleColumnCount, int pageSize = 10, bool multipleExpansion = true, bool isEditable = true, void onRowChanged(ExpandableRow newRow)?, void onPageChanged(int page)?, Widget renderEditDialog(ExpandableRow row, void onSuccess(ExpandableRow newRow))?, Widget renderCustomPagination(int count, int page, void onChange(int page))?, Widget renderExpansionContent(ExpandableRow row)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
ExpandableColumn> -
Headers row generates the header row of the datatable. Header's columns data
creates a template for all rows.
final
- isEditable → bool
-
Flag indicating whether the rows are editable.
If this value is false, renderEditDialog does not affect.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- multipleExpansion → bool
-
Flag indicating that multiple expansions are enabled for rows.
final
- onPageChanged → void Function(int page)?
-
When the current page is changed, this returns the new page value.
final
- onRowChanged → void Function(ExpandableRow newRow)?
-
Triggers when a row is edited with
EditDialog.final - pageSize → int
-
Specifies the number of rows to be used on a single page.
final
- renderCustomPagination → Widget Function(int count, int page, void onChange(int page))?
-
Renders a custom pagination widget with three parameters.
final
- renderEditDialog → Widget Function(ExpandableRow row, void onSuccess(ExpandableRow newRow))?
-
Renders a custom edit dialog widget with two parameters.
final
- renderExpansionContent → Widget Function(ExpandableRow row)?
-
Renders a custom expansion content widget.
final
-
rows
→ List<
ExpandableRow> -
The data of rows
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visibleColumnCount → int
-
This determines how many columns will appear for that build and the data
for the remaining columns are stored in the expansion widget.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ExpandableDataTable> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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