SliverSwayzeTable<CellDataType extends SwayzeCellData> constructor
SliverSwayzeTable<CellDataType extends SwayzeCellData> ({
- Key? key,
- required SwayzeController controller,
- required FocusNode focusNode,
- required ScrollController verticalScrollController,
- bool? autofocus,
- Widget? stickyHeader,
- double? stickyHeaderSize,
- SwayzeStyle? style,
- required InlineEditorBuilder inlineEditorBuilder,
- required CellDelegate<
CellDataType> cellDelegate, - WrapBoxBuilder? wrapBox,
- WrapTableBodyBuilder? wrapTableBody,
- WrapHeaderBuilder? wrapHeader,
Implementation
SliverSwayzeTable({
Key? key,
required this.controller,
required this.focusNode,
required this.verticalScrollController,
bool? autofocus,
this.stickyHeader,
this.stickyHeaderSize,
SwayzeStyle? style,
required this.inlineEditorBuilder,
required this.cellDelegate,
this.wrapBox,
this.wrapTableBody,
this.wrapHeader,
}) : autofocus = autofocus ?? false,
style = style ?? SwayzeStyle.defaultSwayzeStyle,
assert(
stickyHeader == null || stickyHeaderSize != null,
'if stickyHeader is not null, stickyHeaderSize must be also not null',
),
super(key: key);