GridColumn constructor

GridColumn({
  1. required String columnName,
  2. required Widget label,
  3. ColumnWidthMode columnWidthMode = ColumnWidthMode.none,
  4. bool visible = true,
  5. bool allowSorting = true,
  6. ColumnHeaderIconPosition sortIconPosition = ColumnHeaderIconPosition.end,
  7. ColumnHeaderIconPosition filterIconPosition = ColumnHeaderIconPosition.end,
  8. EdgeInsets autoFitPadding = const EdgeInsets.all(16.0),
  9. double minimumWidth = double.nan,
  10. double maximumWidth = double.nan,
  11. double width = double.nan,
  12. bool allowEditing = true,
  13. bool allowFiltering = true,
  14. FilterPopupMenuOptions? filterPopupMenuOptions,
  15. EdgeInsetsGeometry filterIconPadding = const EdgeInsets.symmetric(horizontal: 8.0),
})

Creates the GridColumn for SfDataGrid widget.

Implementation

GridColumn(
    {required this.columnName,
    required this.label,
    this.columnWidthMode = ColumnWidthMode.none,
    this.visible = true,
    this.allowSorting = true,
    this.sortIconPosition = ColumnHeaderIconPosition.end,
    this.filterIconPosition = ColumnHeaderIconPosition.end,
    this.autoFitPadding = const EdgeInsets.all(16.0),
    this.minimumWidth = double.nan,
    this.maximumWidth = double.nan,
    this.width = double.nan,
    this.allowEditing = true,
    this.allowFiltering = true,
    this.filterPopupMenuOptions,
    this.filterIconPadding = const EdgeInsets.symmetric(horizontal: 8.0)}) {
  _actualWidth = double.nan;
  _autoWidth = double.nan;
}