TableConfig class
Main table configuration Maps from visualResponse JSON to internal table structure
- Annotations
Constructors
-
TableConfig({required String visualType, required String visualName, required String title, required String query, List<
ColumnConfig> rowIndex = const [], List<ColumnConfig> valuesConfig = const [], required List<ColumnConfig> columns, int fixedColumns = 0, bool totals = false, bool topN = false, String? sortColumn, String? sortOrder, bool dataTreeStartExpanded = false, bool treeEnabled = false, bool headerFilter = false, bool selectableRows = false, bool showSelectionChips = true, double? rowHeight, bool enableLineHeightAdjustment = false}) -
const
-
TableConfig.fromJson(Map<
String, dynamic> json) -
Parse from visualResponse JSON
factory
Properties
-
allColumns
→ List<
ColumnConfig> -
Get all columns including rowIndex
no setter
-
columns
→ List<
ColumnConfig> -
final
- dataTreeStartExpanded → bool
-
final
- enableLineHeightAdjustment → bool
-
final
- fixedColumns → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerFilter → bool
-
final
- initialSortAscending → bool
-
Get initial sort ascending flag
no setter
- isMatrix → bool
-
Check if this is a matrix-type table
no setter
- query → String
-
final
- rowHeight → double?
-
final
-
rowIndex
→ List<
ColumnConfig> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectableRows → bool
-
final
- showSelectionChips → bool
-
final
- sortColumn → String?
-
final
- sortOrder → String?
-
final
- title → String
-
final
- topN → bool
-
final
- totals → bool
-
final
- treeEnabled → bool
-
final
-
valuesConfig
→ List<
ColumnConfig> -
final
- visualName → String
-
final
- visualType → String
-
final
Methods
-
copyWith(
{String? visualType, String? visualName, String? title, String? query, List< ColumnConfig> ? rowIndex, List<ColumnConfig> ? valuesConfig, List<ColumnConfig> ? columns, int? fixedColumns, bool? totals, bool? topN, Object? sortColumn = _keep, Object? sortOrder = _keep, bool? dataTreeStartExpanded, bool? treeEnabled, bool? headerFilter, bool? selectableRows, bool? showSelectionChips, Object? rowHeight = _keep, bool? enableLineHeightAdjustment}) → TableConfig -
Create a copy with selected fields overridden.
Use
_clearsentinel for nullable fields you want to explicitly set to null. Example: copyWith(onScroll: _clear.onScroll) — not needed normally, just pass the new value directly. For nullable fields like rowHeight, sortColumn, sortOrder, onScroll — passing a non-null value sets it, omitting it keeps the existing value. -
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