NsgTableColumn constructor

NsgTableColumn({
  1. required String name,
  2. List<NsgTableColumn>? columns,
  3. NsgTableColumnTotalType totalType = NsgTableColumnTotalType.none,
  4. String? presentation,
  5. bool expanded = false,
  6. dynamic totalSum = 0,
  7. int flex = 1,
  8. double? width,
  9. bool visible = true,
  10. NsgTableColumnSort? sort = NsgTableColumnSort.nosort,
  11. AlignmentGeometry? headerAlign,
  12. TextAlign? headerTextAlign,
  13. TextStyle? headerTextStyle,
  14. Color? headerBackColor,
  15. AlignmentGeometry? verticalAlign,
  16. TextAlign? rowTextAlign,
  17. Color? rowBackColor,
  18. TextStyle? rowTextStyle,
  19. bool? showTotals = false,
  20. bool allowSort = true,
  21. String getColumnText(
    1. NsgDataItem item,
    2. NsgTableColumn column,
    3. String defaultText
    )?,
  22. Widget getColumnWidget(
    1. NsgDataItem item,
    2. NsgTableColumn column
    )?,
  23. Color getBackColor(
    1. NsgDataItem item,
    2. NsgTableColumn column
    )?,
  24. TextStyle getRowTextStyle(
    1. NsgDataItem item,
    2. NsgTableColumn column
    )?,
  25. String format = '',
})

Implementation

NsgTableColumn(
    {required this.name,
    this.columns,
    this.totalType = NsgTableColumnTotalType.none,
    this.presentation,
    this.expanded = false,
    this.totalSum = 0,
    this.flex = 1,
    this.width,
    this.visible = true,
    this.sort = NsgTableColumnSort.nosort,
    this.headerAlign,
    this.headerTextAlign,
    this.headerTextStyle,
    this.headerBackColor,
    this.verticalAlign,
    this.rowTextAlign,
    this.rowBackColor,
    this.rowTextStyle,
    this.showTotals = false,
    this.allowSort = true,
    this.getColumnText,
    this.getColumnWidget,
    this.getBackColor,
    this.getRowTextStyle,
    this.format = ''});