SantoTableColumn class

表格列配置

@since v1.0.0 @changed v1.4.0 新增排序和单元格合并能力

Constructors

SantoTableColumn({required String title, double? width, SantoTableAlign align = SantoTableAlign.center, SantoTableColumnFixed? fixed, Widget cellBuilder(dynamic cellData, int rowIndex, int colIndex)?, Widget headerBuilder(String title)?, Comparator? sorter, SantoTableSortOrder? defaultSortOrder, SantoTableCellSpan spanBuilder(dynamic cellData, int rowIndex, int colIndex)?})
创建表格列配置
const

Properties

align → SantoTableAlign
final
cellBuilder → Widget Function(dynamic cellData, int rowIndex, int colIndex)?
自定义单元格内容构建器
final
defaultSortOrder → SantoTableSortOrder?
初始排序方向
final
fixed → SantoTableColumnFixed?
final
hashCode → int
The hash code for this object.
no setterinherited
headerBuilder → Widget Function(String title)?
自定义表头内容构建器
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sorter → Comparator?
单元格值比较器;不为 null 时点击表头可切换升序、降序和取消排序
final
spanBuilder → SantoTableCellSpan Function(dynamic cellData, int rowIndex, int colIndex)?
单元格合并配置构建器
final
title → String
final
width → double?
final

Methods

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