ReadableTable<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ReadableTable
Constructors
-
ReadableTable({Key? key, ReadableTableController<
T> ? controller, List<ReadableColumn< ? columns, List<T> >T> ? rows, ReadableSelectionMode selectionMode = ReadableSelectionMode.none, bool showHeader = true, bool zebra = false, bool hoverHighlight = false, double rowMinHeight = 52, EdgeInsets cellPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 14), Widget? emptyState, bool showFilterBar = false, bool filterBarSearch = true, String filterSearchHint = 'Search…', String filterItemNoun = 'row', String filterItemNounPlural = 'rows', double filterBarGap = 10, bool showColumnFilters = false, Set<int> ? initialSelectedRows, Set<ReadableCell> ? initialSelectedCells, int? initialSortColumn, bool initialSortAscending = true, ValueChanged<List< ? onRowSelectionChanged, ValueChanged<T> >Set< ? onCellSelectionChanged, void onRowTap(T value, int index)?, void onSortChanged(int? column, bool ascending)?})ReadableCell> > -
const
Properties
- cellPadding → EdgeInsets
-
final
-
columns
→ List<
ReadableColumn< ?T> > -
Column schema (required when controller is null).
final
-
controller
→ ReadableTableController<
T> ? -
Drive / observe the grid externally. When null the widget builds and owns
a controller from columns + rows.
final
- emptyState → Widget?
-
final
- filterBarGap → double
-
Gap between the built-in filter bar and the grid.
final
- filterBarSearch → bool
-
Show the cross-column quick-search field in the built-in filter bar.
final
- filterItemNoun → String
-
Singular / plural noun for the built-in filter bar's results count.
final
- filterItemNounPlural → String
-
final
- filterSearchHint → String
-
Placeholder for the built-in filter bar's quick-search.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverHighlight → bool
-
final
-
initialSelectedCells
→ Set<
ReadableCell> ? -
final
-
initialSelectedRows
→ Set<
int> ? -
final
- initialSortAscending → bool
-
final
- initialSortColumn → int?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onCellSelectionChanged
→ ValueChanged<
Set< ?ReadableCell> > -
Fires with the set of selected cells whenever it changes.
final
-
onRowSelectionChanged
→ ValueChanged<
List< ?T> > -
Fires with the original row values whenever the row selection changes.
final
- onRowTap → void Function(T value, int index)?
-
Fires when a row is activated (tap / Enter), with its value + index.
final
- onSortChanged → void Function(int? column, bool ascending)?
-
Fires whenever the sort changes — (column or null, ascending).
final
- rowMinHeight → double
-
final
-
rows
→ List<
T> ? -
Row values (used when controller is null).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionMode → ReadableSelectionMode
-
What the user can select (used when controller is null; also keeps an
external controller's mode in sync).
final
- showColumnFilters → bool
-
Show an inline filter row directly beneath the column headers — one small
control per column that filters on that column's value (a contains-search
for text / number / date columns, a value dropdown for enum / colour
columns). Drives the controller's ReadableTableController.setColumnFilter,
so it ANDs on top of any other active filtering.
final
- showFilterBar → bool
-
Mount a ReadableFilterBar above the grid (quick-search · per-column
filter chips · AND/OR · results count). It drives this table's controller,
so filters apply live. For full control place a ReadableFilterBar
yourself and leave this false.
final
- showHeader → bool
-
final
- zebra → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ReadableTable< T> > -
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