DynamicTableColumn<T> class
Represents a column in the DynamicTableScrollView.
Constructors
- DynamicTableColumn({required String id, required Widget title, double width = 120.0, double minWidth = 50.0, double maxWidth = double.infinity, bool autoFit = false, bool isPinned = false, Alignment alignment = Alignment.centerLeft, Widget cellBuilder(BuildContext context, T rowData, int rowIndex)?, String getTextValue(T rowData)?, String? tooltip})
-
const
Properties
- alignment → Alignment
-
Alignment of the cell content.
final
- autoFit → bool
-
Whether to automatically calculate column width based on header and sample row contents,
clamped between minWidth and maxWidth.
final
- cellBuilder → Widget Function(BuildContext context, T rowData, int rowIndex)?
-
Builder for rendering each cell in this column.
final
- getTextValue → String Function(T rowData)?
-
Optional extractor function to retrieve plain text representation of row cell data,
used for fast autoFit measurement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the column.
final
- isPinned → bool
-
Whether this specific column should be pinned/sticky on the left when scrolling horizontally.
final
- maxWidth → double
-
Maximum width constraint for this column when autoFit is enabled or when resizing.
final
- minWidth → double
-
Minimum width constraint for this column when autoFit is enabled or when resizing.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget
-
Header widget or title builder.
final
- tooltip → String?
-
Optional tooltip or extra metadata.
final
- width → double
-
Width of the column (used as initial or fixed width).
final
Methods
-
copyWith(
{String? id, Widget? title, double? width, double? minWidth, double? maxWidth, bool? autoFit, bool? isPinned, Alignment? alignment, Widget cellBuilder(BuildContext context, T rowData, int rowIndex)?, String getTextValue(T rowData)?, String? tooltip}) → DynamicTableColumn< T> - Creates a copy of this column with specified fields replaced.
-
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