SliverSwayzeTable<CellDataType extends SwayzeCellData> constructor

SliverSwayzeTable<CellDataType extends SwayzeCellData>({
  1. Key? key,
  2. required SwayzeController controller,
  3. required FocusNode focusNode,
  4. required ScrollController verticalScrollController,
  5. bool? autofocus,
  6. Widget? stickyHeader,
  7. double? stickyHeaderSize,
  8. SwayzeStyle? style,
  9. required InlineEditorBuilder inlineEditorBuilder,
  10. required CellDelegate<CellDataType> cellDelegate,
  11. WrapBoxBuilder? wrapBox,
  12. WrapTableBodyBuilder? wrapTableBody,
  13. 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);