MyTableColumn<T> constructor

const MyTableColumn<T>({
  1. required String name,
  2. String? tooltip,
  3. String builder(
    1. T data
    )?,
  4. Widget customCellBuilder(
    1. T data
    )?,
  5. Widget headerWidgetBuilder()?,
  6. TableColumnWidth? tableWidth,
  7. String cellTooptip(
    1. T data
    )?,
})

Implementation

const MyTableColumn({
  required this.name,
  this.tooltip,
  this.builder,
  this.customCellBuilder,
  this.headerWidgetBuilder,
  this.tableWidth,
  this.cellTooptip,
}) : assert(
        builder != null || customCellBuilder != null,
        'Either builder or widgetBuilder must be provided',
      );